Skip to content

Commit

Permalink
Add cli workspace crate
Browse files Browse the repository at this point in the history
Names are provisional, please suggest better ones. `rcgen`'s `main.rs`
is being used as a provisional `main.rs` in the new crate, but will be
replaced and moved to top level examples later.

  * create top level virtual crate
  * create `rustls-cert-gen` crate and move `rcgen` to `rcgen` subfolder
  * Include some workspace configuration to confirm expectations
  * move `src/main.rs` to `rustls-cert-gen/src/main.rs`
  * addresses #175
  • Loading branch information
tbro committed Oct 13, 2023
1 parent eb3c261 commit b757413
Show file tree
Hide file tree
Showing 25 changed files with 1,308 additions and 86 deletions.
66 changes: 37 additions & 29 deletions Cargo.lock

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

65 changes: 8 additions & 57 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,59 +1,10 @@
[package]
name = "rcgen"
version = "0.11.3"
description = "Rust X.509 certificate generator"
repository = "https://github.com/est31/rcgen"
documentation = "https://docs.rs/rcgen"
license = "MIT OR Apache-2.0"
edition = "2021"
readme = "README.md"
keywords = ["mkcert", "ca", "certificate"]

[lib]
name = "rcgen"
path = "src/lib.rs"

[[bin]]
name = "rcgen"
path = "src/main.rs"
required-features = ["pem"]

[[example]]
name = "rsa-irc"
required-features = ["pem"]

[[example]]
name = "rsa-irc-openssl"
required-features = ["pem"]
[workspace]
members = ["rustls-cert-gen", "rcgen"]
resolver = "2"

[[example]]
name = "sign-leaf-with-ca"
required-features = ["pem", "x509-parser"]
[workspace.dependencies]
pem = { version = "3.0.2" }

[dependencies]
yasna = { version = "0.5.2", features = ["time", "std"] }
ring = "0.17"
pem = { version = "3.0.2", optional = true }
time = { version = "0.3.6", default-features = false }
x509-parser = { version = "0.15", features = ["verify"], optional = true }
zeroize = { version = "1.2", optional = true }

[features]
default = ["pem"]

[package.metadata.docs.rs]
features = ["x509-parser"]

[dev-dependencies]
openssl = "0.10"
x509-parser = { version = "0.15", features = ["verify"] }
rustls-webpki = { version = "0.101.0", features = ["std"] }
botan = { version = "0.10", features = ["vendored"] }
rand = "0.8"
rsa = "0.9"

# This greatly speeds up rsa key generation times
# (only applies to the dev-dependency because cargo
# ignores profile overrides for non leaf packages)
[profile.dev.package.num-bigint-dig]
opt-level = 3
[workspace.package]
license = "MIT OR Apache-2.0"
edition = "2021"
File renamed without changes.
Loading

0 comments on commit b757413

Please sign in to comment.