Skip to content

Commit

Permalink
create wepki-ccadb crate
Browse files Browse the repository at this point in the history
Change the webpki-roots repo to be a workspace that includes a crate
that pulls the CCADB stuff and exposes an API.
  • Loading branch information
mspiegel committed Dec 4, 2023
1 parent 21ef712 commit ad141c6
Show file tree
Hide file tree
Showing 10 changed files with 680 additions and 285 deletions.
12 changes: 8 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
[workspace]
members = [ "webpki-roots" ]
members = [ "webpki-ccadb", "webpki-roots" ]

[workspace.package]
version = "0.26.0"
edition = "2018"
readme = "README.md"
license = "MPL-2.0"
homepage = "https://github.com/rustls/webpki-roots"
repository = "https://github.com/rustls/webpki-roots"

[workspace.dependencies]
hex = "0.4.3"
pki-types = { package = "rustls-pki-types", version = "1", default-features = false }
webpki = { package = "rustls-webpki", version = "0.102", features = ["alloc"] }
x509-parser = "0.15.1"
yasna = "0.5.2"
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
This workspace contains the crate webpki-roots.
This workspace contains the crates webpki-roots and webpki-ccadb.

The webpki-roots crate contains Mozilla's root certificates for use with
the [webpki](https://github.com/rustls/webpki) or
[rustls](https://github.com/rustls/rustls) crates.

# License
The underlying data is MPL-licensed, and `src/lib.rs`
is therefore a derived work.
The webpki-ccadb crate populates the root certificates for the webpki-roots crate
using the data provided by the [Common CA Database (CCADB)](https://www.ccadb.org/).
Inspired by [certifi.io](https://certifi.io/en/latest/).

22 changes: 22 additions & 0 deletions webpki-ccadb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "webpki-ccadb"
version = "0.1.0"
edition = { workspace = true }
readme = "README.md"
license = "MPL-2.0"
homepage = { workspace = true }
repository = { workspace = true }
description = "Common CA Database (CCADB) interface for use with webpki-roots"

[dependencies]
chrono = { version = "0.4.26", default-features = false, features = ["clock"] }
csv = "1.2.2"
hex = { workspace = true }
num-bigint = "0.4.3"
pki-types = { workspace = true }
reqwest = { version = "0.11", features = ["rustls-tls-manual-roots"] }
rustls-pemfile = "2.0.0"
serde = { version = "1.0.183", features = ["derive"] }
webpki = { workspace = true }
x509-parser = { workspace = true }
yasna = { workspace = true }

0 comments on commit ad141c6

Please sign in to comment.