oxidetalis/Cargo.toml
Awiteb 20a8ac6715
All checks were successful
Write changelog / write-changelog (push) Successful in 4s
Update Contributors / Update Contributors (push) Successful in 4s
Rust CI / Rust CI (push) Successful in 5m24s
refactor: Use PublicKey and Signature as parameters
### Changes
- Implement `salvo_oapi::Extractible` and `salvo_oapi::EndpointArgRegister`
for `PublicKey`
- Implement `salvo_oapi::Extractible` and `salvo_oapi::ToParameters` for `Signature`

### Notes
I did not implement `salvo_oapi::ToParameters` for `PublicKey` because it will
not be used as an OpenAPI parameter. Instead, Salvo will register it using the
`EndpointArgRegister` trait.

Similarly, I did not implement `salvo_oapi::EndpointArgRegister` for `Signature`
because it will not be used as an argument in the endpoint. Instead, the
signature will be verified by the signature middleware, and we will only use it
as a parameter.

Reviewed-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
Reviewed-on: #33
Fixes: #21
Helped-by: Amjad Alsharafi <me@amjad.alsharafi.dev>
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-28 12:56:20 +03:00

35 lines
1 KiB
TOML

[workspace]
members = ["crates/*"]
resolver = "2"
[workspace.package]
authors = ["Awiteb <a@4rs.nl>", "OxideTalis Contributors"]
readme = "README.md"
repository = "https://git.4rs.nl/oxidetalis/oxidetalis"
version = "0.1.0"
rust-version = "1.76.0"
[workspace.dependencies]
# Local crates
oxidetalis_core = { path = "crates/oxidetalis_core" }
oxidetalis_config = { path = "crates/oxidetalis_config" }
oxidetalis_migrations = { path = "crates/oxidetalis_migrations" }
oxidetalis_entities = { path = "crates/oxidetalis_entities" }
# Shared dependencies
base58 = "0.2.0"
serde = "1.0.203"
thiserror = "1.0.61"
log = "0.4.21"
logcall = "0.1.9"
chrono = "0.4.38"
serde_json = "1.0.117"
sea-orm = { version = "0.12.15", features = ["with-chrono", "macros"] }
salvo_core = { version = "0.68.3", default-features = false }
salvo-oapi = { version = "0.68.3", default-features = false, features = ["rapidoc","redoc","scalar","swagger-ui"] }
[profile.release]
strip = true
panic = "abort"
codegen-units = 1
lto = true