Skip to content

Commit a994e54

Browse files
committed
Build cdylib explicitly when necessary and remove from manifest
1 parent 9c727a9 commit a994e54

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

android/rustls-platform-verifier/build.gradle

Lines changed: 2 additions & 2 deletions
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", "-p", "rustls-platform-verifier", "--features", "ffi-testing"
53+
commandLine "cargo", "ndk", "-t", getOsArch(), "-o", "android/rustls-platform-verifier/src/androidTest/jniLibs", "rustc", "-p", "rustls-platform-verifier", "--features", "ffi-testing", "--crate-type", "cdylib"
5454
}
5555

5656
// Only compile the test library if this package is being built for testing by itself.
@@ -106,4 +106,4 @@ dependencies {
106106
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${libs.versions.kotlin.get()}"
107107

108108
ktlint 'com.pinterest:ktlint:0.46.1'
109-
}
109+
}

rustls-platform-verifier/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ rust-version = "1.71.0"
1111

1212
[lib]
1313
name = "rustls_platform_verifier"
14-
# Note: The `cdylib` specification is for testing only. The shared library
15-
# is not expected to have a stable API.
16-
crate-type = ["cdylib", "rlib"]
1714

1815
[features]
1916
# Enables a C interface to use for testing where `cargo` can't be used.

0 commit comments

Comments
 (0)