-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split lib into lib and extension
- Loading branch information
1 parent
28b5527
commit 72ca78a
Showing
18 changed files
with
134 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,12 @@ | ||
[package] | ||
name = "httpsig-rs" | ||
version = "0.1.0" | ||
edition = "2021" | ||
description = "Implementation of IETF draft of http message signatures" | ||
authors = ["Jun Kurihara"] | ||
homepage = "https://github.com/junkurihara/httpsig-rs" | ||
repository = "https://github.com/junkurihara/httpsig-rs" | ||
license = "MIT" | ||
readme = "../README.md" | ||
publish = false | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
# serde = { version = "1.0.193", default-features = false, features = ["derive"] } | ||
# serde_json = "1.0.108" | ||
anyhow = { version = "1.0.79" } | ||
tracing = { version = "0.1.40" } | ||
rustc-hash = { version = "1.1.0" } | ||
rand = { version = "0.8.5" } | ||
|
||
# crypto | ||
pkcs8 = { version = "0.10.2", default-features = false, features = ["pem"] } | ||
spki = { version = "0.7.3", default-features = false, features = ["pem"] } | ||
sec1 = { version = "0.7.3", default-features = false, features = ["der"] } | ||
ed25519-compact = { version = "2.0.6", default-features = false, features = [ | ||
"random", | ||
] } | ||
ecdsa = { version = "0.16.9", default-features = false, features = [ | ||
"arithmetic", | ||
] } | ||
p256 = { version = "0.13.2", default-features = false, features = [ | ||
"arithmetic", | ||
"ecdsa", | ||
] } | ||
p384 = { version = "0.13.0", default-features = false, features = [ | ||
"arithmetic", | ||
"ecdsa", | ||
] } | ||
hmac = { version = "0.12.1" } | ||
sha2 = { version = "0.10.8", default-features = false } | ||
|
||
# encoding | ||
base64 = { version = "0.21.6" } | ||
|
||
# for request and response headers | ||
http = { version = "1.0.0" } | ||
http-body = { version = "1.0.0" } | ||
http-body-util = { version = "0.1.0" } | ||
bytes = { version = "1.5.0" } | ||
|
||
# | ||
async-trait = "0.1.77" | ||
url = "2.5.0" | ||
|
||
# for rfc8941 structured field values | ||
sfv = "0.9.4" | ||
|
||
[dev-dependencies] | ||
tokio = { version = "1.35.1", default-features = false, features = [ | ||
"macros", | ||
"rt-multi-thread", | ||
] } # testing only? | ||
[workspace] | ||
|
||
members = ["lib", "ext-hyper"] | ||
resolver = "2" | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
incremental = false | ||
lto = "fat" | ||
opt-level = 3 | ||
panic = "abort" | ||
strip = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[package] | ||
name = "httpsig-hyper" | ||
version = "0.1.0" | ||
edition = "2021" | ||
description = "Hyper extension for http message signatures" | ||
authors = ["Jun Kurihara"] | ||
homepage = "https://github.com/junkurihara/httpsig-rs" | ||
repository = "https://github.com/junkurihara/httpsig-rs" | ||
license = "MIT" | ||
readme = "../README.md" | ||
publish = false | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
httpsig = { path = "../lib" } | ||
|
||
anyhow = { version = "1.0.79" } | ||
tracing = { version = "0.1.40" } | ||
async-trait = { version = "0.1.77" } | ||
|
||
# content digest | ||
sha2 = { version = "0.10.8", default-features = false } | ||
|
||
# encoding | ||
base64 = { version = "0.21.6" } | ||
|
||
# for request and response headers | ||
http = { version = "1.0.0" } | ||
http-body = { version = "1.0.0" } | ||
http-body-util = { version = "0.1.0" } | ||
bytes = { version = "1.5.0" } | ||
|
||
|
||
[dev-dependencies] | ||
tokio = { version = "1.35.1", default-features = false, features = [ | ||
"macros", | ||
"rt-multi-thread", | ||
] } # testing only? |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[package] | ||
name = "httpsig" | ||
version = "0.1.0" | ||
edition = "2021" | ||
description = "Implementation of IETF draft of http message signatures" | ||
authors = ["Jun Kurihara"] | ||
homepage = "https://github.com/junkurihara/httpsig-rs" | ||
repository = "https://github.com/junkurihara/httpsig-rs" | ||
license = "MIT" | ||
readme = "../README.md" | ||
publish = false | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
anyhow = { version = "1.0.79" } | ||
tracing = { version = "0.1.40" } | ||
rustc-hash = { version = "1.1.0" } | ||
rand = { version = "0.8.5" } | ||
|
||
# crypto | ||
pkcs8 = { version = "0.10.2", default-features = false, features = ["pem"] } | ||
spki = { version = "0.7.3", default-features = false, features = ["pem"] } | ||
sec1 = { version = "0.7.3", default-features = false, features = ["der"] } | ||
ed25519-compact = { version = "2.0.6", default-features = false, features = [ | ||
"random", | ||
] } | ||
ecdsa = { version = "0.16.9", default-features = false, features = [ | ||
"arithmetic", | ||
] } | ||
p256 = { version = "0.13.2", default-features = false, features = [ | ||
"arithmetic", | ||
"ecdsa", | ||
] } | ||
p384 = { version = "0.13.0", default-features = false, features = [ | ||
"arithmetic", | ||
"ecdsa", | ||
] } | ||
hmac = { version = "0.12.1" } | ||
sha2 = { version = "0.10.8", default-features = false } | ||
|
||
# encoding | ||
base64 = { version = "0.21.6" } | ||
|
||
# for rfc8941 structured field values | ||
sfv = "0.9.4" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/message_component/mod.rs → lib/src/message_component/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
mod component; | ||
mod parse; | ||
|
||
pub(crate) use component::{ | ||
pub use component::{ | ||
DerivedComponentName, HttpMessageComponent, HttpMessageComponentId, HttpMessageComponentName, HttpMessageComponentParam, | ||
HttpMessageComponentValue, | ||
}; | ||
pub(crate) use parse::build_http_message_component; | ||
pub use parse::build_http_message_component; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.