Skip to content

Commit

Permalink
chore: prepare for crate publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Mar 28, 2024
1 parent e833d95 commit b559826
Show file tree
Hide file tree
Showing 22 changed files with 42 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ jobs:
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1

- run: cargo publish -p baffao-core
- run: cargo publish -p baffao
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'baffao-core'",
"name": "Debug unit tests in library 'baffao'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=baffao-core"
"--package=baffao"
],
"filter": {
"name": "baffao-core",
"name": "baffao",
"kind": "lib"
}
},
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
resolver = "2"

members = [
"baffao-core",
"baffao",
"baffao-proxy",
]
22 changes: 0 additions & 22 deletions baffao-core/Cargo.toml

This file was deleted.

8 changes: 3 additions & 5 deletions baffao-proxy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[package]
name = "baffao-proxy"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
version = "0.0.1"
publish = false

[dependencies]
axum = "0.7.4"
axum-extra = { version = "0.9.2", features = ["typed-header", "cookie"] }
baffao-core = { path = "../baffao-core" }
baffao = { path = "../baffao" }
config = "0.14.0"
hyper = { version = "1.2.0", features = ["full"] }
hyper-util = { version = "0.1.3", features = ["client-legacy"] }
Expand Down
30 changes: 30 additions & 0 deletions baffao/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[package]
name = "baffao"
version = "0.0.1"
authors = ["CerberAuth <[email protected]>"]
repository = "https://github.com/cerberauth/baffao"
homepage = "https://github.com/cerberauth/baffao"
documentation = "https://github.com/cerberauth/baffao"
keywords = ["proxy", "oauth2", "authentication", "authorization", "auth"]
license = "MIT"
description = "BAckend For Frontend for your SPA authentication and authorization."
edition = "2021"
readme = "../README.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.80"
axum-extra = { version = "0.9.2", features = ["cookie"] }
base64 = "0.22.0"
chrono = "0.4.35"
config = "0.14.0"
cookie = "0.18.0"
hex = "0.4.3"
http = "1.1.0"
jsonwebtoken = "9.2.0"
oauth2 = "4.4.2"
reqwest = "0.11.24"
ring = "0.17.8"
serde = "1.0.197"
serde_json = "1.0.114"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b559826

Please sign in to comment.