Skip to content

Commit fdbf43b

Browse files
committed
Convert repository into a workspace
1 parent ce16ccc commit fdbf43b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+81
-76
lines changed

Cargo.toml

Lines changed: 3 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,4 @@
1-
[package]
2-
name = "rustls-platform-verifier"
3-
version = "0.1.0"
4-
authors = ["ComplexSpaces <complexspacescode@gmail.com>", "1Password"]
5-
description = "rustls-platform-verifier supports verifying TLS certificates in rustls with the operating system verifier"
6-
keywords = ["tls", "certificate", "verification", "os", "native"]
7-
repository = "https://github.com/1Password/rustls-platform-verifier"
8-
license = "MIT OR Apache-2.0"
9-
edition = "2021"
10-
rust-version = "1.64.0"
1+
[workspace]
2+
members = ["rustls-platform-verifier"]
113

12-
exclude = [
13-
"android/.run",
14-
"android/gradle/**",
15-
"android/gradle*",
16-
"android/settings.gradle",
17-
"android/src/androidTest",
18-
]
19-
20-
[lib]
21-
name = "rustls_platform_verifier"
22-
# Note: The `cdylib` specification is for testing only. The shared library
23-
# is not expected to have a stable API.
24-
crate-type = ["cdylib", "rlib"]
25-
26-
[features]
27-
# Enables a C interface to use for testing where `cargo` can't be used.
28-
# This feature is not stable, nor is the interface exported when it is enabled.
29-
# Do not rely on this or use it in production.
30-
ffi-testing = ["android_logger"]
31-
# Enables APIs that expose lower-level verifier types for debugging purposes.
32-
dbg = []
33-
# Enables `log::debug` base64-encoded logging of all end-entity certificates processed
34-
# by the platform's verifier.
35-
cert-logging = ["base64"]
36-
# Used for nicely documenting the Android-specific APIs. This feature is not stable.
37-
docsrs = ["jni", "once_cell"]
38-
39-
[dependencies]
40-
rustls = { version = "0.21", features = ["dangerous_configuration", "tls12", "logging"] }
41-
log = { version = "0.4" }
42-
base64 = { version = "0.21", optional = true } # Only used when the `cert-logging` feature is enabled.
43-
jni = { version = "0.19", default-features = false, optional = true } # Only used during doc generation
44-
once_cell = { version = "1.9", optional = true } # Only used during doc generation.
45-
46-
[target.'cfg(target_os = "linux")'.dependencies]
47-
rustls-native-certs = "0.6"
48-
once_cell = "1.9"
49-
webpki = { package = "rustls-webpki", version = "0.101", features = ["alloc", "std"] }
50-
51-
[target.'cfg(target_os = "android")'.dependencies]
52-
jni = { version = "0.19", default-features = false }
53-
webpki = { package = "rustls-webpki", version = "0.101", features = ["alloc", "std"] }
54-
once_cell = "1.9"
55-
android_logger = { version = "0.13", optional = true } # Only used during testing.
56-
57-
[target.'cfg(target_arch = "wasm32")'.dependencies]
58-
once_cell = "1.9"
59-
webpki-roots = "0.25"
60-
61-
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
62-
core-foundation = "0.9"
63-
core-foundation-sys = "0.8"
64-
security-framework = { version = "2.6", features = ["OSX_10_14"] }
65-
security-framework-sys = { version = "2.4", features = ["OSX_10_14"] }
66-
67-
[target.'cfg(windows)'.dependencies]
68-
winapi = { version = "0.3", features = ["wincrypt", "winerror"] }
69-
70-
[dev-dependencies]
71-
tokio = { version = "1.5", features = ["macros", "rt-multi-thread"] }
72-
reqwest = { version = "0.11.18", default-features = false, features = ["rustls-tls-manual-roots"] }
73-
74-
[package.metadata.docs.rs]
75-
rustdoc-args = ["--cfg", "docsrs"]
76-
features = ["dbg", "docsrs"]
4+
resolver = "2"

android/rustls-platform-verifier/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ android {
5050

5151
task buildTestLib(type: Exec) {
5252
workingDir "../../"
53-
commandLine "cargo", "ndk", "-t", getOsArch(), "-o", "android/rustls-platform-verifier/src/androidTest/jniLibs", "build", "--features", "ffi-testing"
53+
commandLine "cargo", "ndk", "-t", getOsArch(), "-o", "android/rustls-platform-verifier/src/androidTest/jniLibs", "build", "-p", "rustls-platform-verifier", "--features", "ffi-testing"
5454
}
5555

5656
// Only compile the test library if this package is being built for testing by itself.

rustls-platform-verifier/Cargo.toml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
[package]
2+
name = "rustls-platform-verifier"
3+
version = "0.1.0"
4+
authors = ["ComplexSpaces <complexspacescode@gmail.com>", "1Password"]
5+
description = "rustls-platform-verifier supports verifying TLS certificates in rustls with the operating system verifier"
6+
keywords = ["tls", "certificate", "verification", "os", "native"]
7+
repository = "https://github.com/1Password/rustls-platform-verifier"
8+
license = "MIT OR Apache-2.0"
9+
edition = "2021"
10+
rust-version = "1.64.0"
11+
12+
exclude = [
13+
"android/.run",
14+
"android/gradle/**",
15+
"android/gradle*",
16+
"android/settings.gradle",
17+
"android/src/androidTest",
18+
]
19+
20+
[lib]
21+
name = "rustls_platform_verifier"
22+
# Note: The `cdylib` specification is for testing only. The shared library
23+
# is not expected to have a stable API.
24+
crate-type = ["cdylib", "rlib"]
25+
26+
[features]
27+
# Enables a C interface to use for testing where `cargo` can't be used.
28+
# This feature is not stable, nor is the interface exported when it is enabled.
29+
# Do not rely on this or use it in production.
30+
ffi-testing = ["android_logger"]
31+
# Enables APIs that expose lower-level verifier types for debugging purposes.
32+
dbg = []
33+
# Enables `log::debug` base64-encoded logging of all end-entity certificates processed
34+
# by the platform's verifier.
35+
cert-logging = ["base64"]
36+
# Used for nicely documenting the Android-specific APIs. This feature is not stable.
37+
docsrs = ["jni", "once_cell"]
38+
39+
[dependencies]
40+
rustls = { version = "0.21", features = ["dangerous_configuration", "tls12", "logging"] }
41+
log = { version = "0.4" }
42+
base64 = { version = "0.21", optional = true } # Only used when the `cert-logging` feature is enabled.
43+
jni = { version = "0.19", default-features = false, optional = true } # Only used during doc generation
44+
once_cell = { version = "1.9", optional = true } # Only used during doc generation.
45+
46+
[target.'cfg(target_os = "linux")'.dependencies]
47+
rustls-native-certs = "0.6"
48+
once_cell = "1.9"
49+
webpki = { package = "rustls-webpki", version = "0.101", features = ["alloc", "std"] }
50+
51+
[target.'cfg(target_os = "android")'.dependencies]
52+
jni = { version = "0.19", default-features = false }
53+
webpki = { package = "rustls-webpki", version = "0.101", features = ["alloc", "std"] }
54+
once_cell = "1.9"
55+
android_logger = { version = "0.13", optional = true } # Only used during testing.
56+
57+
[target.'cfg(target_arch = "wasm32")'.dependencies]
58+
once_cell = "1.9"
59+
webpki-roots = "0.25"
60+
61+
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
62+
core-foundation = "0.9"
63+
core-foundation-sys = "0.8"
64+
security-framework = { version = "2.6", features = ["OSX_10_14"] }
65+
security-framework-sys = { version = "2.4", features = ["OSX_10_14"] }
66+
67+
[target.'cfg(windows)'.dependencies]
68+
winapi = { version = "0.3", features = ["wincrypt", "winerror"] }
69+
70+
[dev-dependencies]
71+
tokio = { version = "1.5", features = ["macros", "rt-multi-thread"] }
72+
reqwest = { version = "0.11.18", default-features = false, features = ["rustls-tls-manual-roots"] }
73+
74+
[package.metadata.docs.rs]
75+
rustdoc-args = ["--cfg", "docsrs"]
76+
features = ["dbg", "docsrs"]

rustls-platform-verifier/README.md

Lines changed: 1 addition & 0 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)