-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
polyproto v0.9 is here, and it is by far the biggest and best update to the polyproto crate so far. It is the first version of the polyproto crate which I am personally happy with, and which I can recommend to be used by other people in their applications. This version is responsible for a myriad of improvements to the polyproto API, which is now mostly stable! Here is a rundown of what has been changed, added and fixed: ## Additions - More robust and wide-reaching tests, covering more cases, thus uncovering bugs that desperately needed fixing - Full HTTP API client for polyproto, gated behind `reqwest` feature - Ergonomic API types gated behind `types` feature to use in own applications - serde support for der, spki and x509_cert types which directly interface with the API ## Changes - Made API more ergonomic - Too many small ones to list :P ## Fixes - Fixed catastrophically incorrect validation of IdCerts and IdCsrs - Fixed incorrect parsing of BitStrings when converting to/from the Capabilities struct - Probably others I cannot recall right now
- Loading branch information
Showing
59 changed files
with
4,603 additions
and
859 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
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
.VSCodeCounter | ||
.coverage | ||
cert.csr | ||
cert.der | ||
cert.der | ||
/firedbg |
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 |
---|---|---|
|
@@ -52,3 +52,4 @@ extnValue | |
extnID | ||
CSRs | ||
IdCsrInner | ||
TryFrom |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"markiscodecoverage.searchCriteria": ".coverage/lcov*.info" | ||
"markiscodecoverage.searchCriteria": ".coverage/lcov*.info", | ||
"rust-analyzer.cargo.features": ["types", "reqwest"] | ||
} |
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,32 +1,48 @@ | ||
[package] | ||
name = "polyproto" | ||
version = "0.9.0-alpha.1" | ||
version = "0.9.0" | ||
edition = "2021" | ||
license = "MPL-2.0" | ||
description = "(Generic) Rust types and traits to quickly get a polyproto implementation up and running" | ||
repository = "https://github.com/polyphony-chat/polyproto" | ||
rust-version = "1.65.0" | ||
rust-version = "1.71.1" | ||
|
||
[lib] | ||
crate-type = ["rlib", "cdylib", "staticlib"] | ||
|
||
[features] | ||
default = ["types"] | ||
wasm = ["getrandom", "getrandom/js"] | ||
getrandom = ["dep:getrandom"] | ||
types = ["dep:http"] | ||
reqwest = ["dep:reqwest", "types", "serde", "dep:url"] | ||
serde = ["dep:serde", "dep:serde_json"] | ||
|
||
[dependencies] | ||
der = { version = "0.7.8", features = ["pem"] } | ||
getrandom = { version = "0.2.12", optional = true } | ||
der = { version = "0.7.9", features = ["pem"] } | ||
getrandom = { version = "0.2.14", optional = true } | ||
regex = "1.10.4" | ||
spki = "0.7.3" | ||
thiserror = "1.0.57" | ||
x509-cert = { version = "0.2.5", default-features = false } | ||
reqwest = { version = "0.12.4", features = ["json"], optional = true } | ||
serde = { version = "1.0.199", optional = true, features = ["derive"] } | ||
serde_json = { version = "1.0.116", optional = true } | ||
spki = { version = "0.7.3", features = ["pem"] } | ||
thiserror = "1.0.59" | ||
x509-cert = "0.2.5" | ||
log = "0.4.21" | ||
url = { version = "2.5.0", optional = true } | ||
http = { version = "1.1.0", optional = true } | ||
|
||
[dev-dependencies] | ||
ed25519-dalek = { version = "2.1.1", features = ["rand_core", "signature"] } | ||
env_logger = "0.11.3" | ||
httptest = "0.16.1" | ||
rand = "0.8.5" | ||
polyproto = { path = "./" } | ||
tokio = { version = "1.37.0", features = ["full"] } | ||
serde = { version = "1.0.199", features = ["derive"] } | ||
serde_json = { version = "1.0.116" } | ||
serde_test = "1.0.176" | ||
polyproto = { path = "./", features = ["types", "reqwest", "serde"] } | ||
|
||
[target.'cfg(target_arch = "wasm32")'.dev-dependencies] | ||
wasm-bindgen-test = "0.3.39" | ||
wasm-bindgen = "0.2.89" | ||
wasm-bindgen-test = "0.3.42" | ||
wasm-bindgen = "0.2.92" |
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
Oops, something went wrong.