Skip to content

Commit

Permalink
Explicitly set docs.rs targets and bump versions to 0.2.1/0.5.3 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
msiglreith authored Oct 19, 2020
1 parent 2ecb13d commit 7d36455
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 21 deletions.
2 changes: 2 additions & 0 deletions cargo-apk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Unreleased

# 0.5.3 (2020-10-15)

- Fix `res` folder resolve.

# 0.5.2 (2020-09-15)
Expand Down
2 changes: 1 addition & 1 deletion cargo-apk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-apk"
version = "0.5.2"
version = "0.5.3"
authors = ["The Rust Windowing contributors"]
edition = "2018"
description = "Helps cargo build APKs"
Expand Down
4 changes: 4 additions & 0 deletions ndk-glue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

# 0.2.1 (2020-10-15)

- Fix documentation build on docs.rs

# 0.2.0 (2020-09-15)

- **Breaking:** Removed `ndk_glue` macro in favor of new `main` attribute macro.
Expand Down
14 changes: 11 additions & 3 deletions ndk-glue/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ndk-glue"
version = "0.2.0"
version = "0.2.1"
authors = ["The Rust Windowing contributors"]
edition = "2018"
description = "Startup code for android binaries"
Expand All @@ -12,8 +12,8 @@ homepage = "https://github.com/rust-windowing/android-ndk-rs"
repository = "https://github.com/rust-windowing/android-ndk-rs"

[dependencies]
ndk = { path = "../ndk", version = "0.2.0" }
ndk-sys = { path = "../ndk-sys", version = "0.2.0" }
ndk = { path = "../ndk", version = "0.2.1" }
ndk-sys = { path = "../ndk-sys", version = "0.2.1" }
ndk-macro = { path = "../ndk-macro", version = "0.2.0" }
lazy_static = "1.4.0"
libc = "0.2.66"
Expand All @@ -23,3 +23,11 @@ android_logger = { version = "0.8.6", optional = true }
[features]
default = []
logger = ["android_logger", "ndk-macro/logger"]

[package.metadata.docs.rs]
targets = [
"aarch64-linux-android",
"armv7-linux-androideabi",
"i686-linux-android",
"x86_64-linux-android",
]
4 changes: 4 additions & 0 deletions ndk-sys/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

# 0.2.1 (2020-10-15)

- Fix documentation build on docs.rs

# 0.2.0 (2020-09-15)

- **Breaking:** `onSaveInstanceState` signature corrected to take `outSize` as a `*mut size_t` instead of `*mut usize`.
Expand Down
10 changes: 7 additions & 3 deletions ndk-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ndk-sys"
version = "0.2.0"
version = "0.2.1"
authors = ["The Rust Windowing contributors"]
edition = "2018"
description = "FFI bindings for the Android NDK"
Expand All @@ -12,11 +12,15 @@ homepage = "https://github.com/rust-windowing/android-ndk-rs"
repository = "https://github.com/rust-windowing/android-ndk-rs"

[features]
rustdoc = []
test = []
aaudio = []
bitmap = []
media = []

[package.metadata.docs.rs]
features = ["rustdoc"]
targets = [
"aarch64-linux-android",
"armv7-linux-androideabi",
"i686-linux-android",
"x86_64-linux-android",
]
11 changes: 4 additions & 7 deletions ndk-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@
// Test setup lints
#![cfg_attr(test, allow(dead_code))]

#[cfg(not(any(target_os = "android", feature = "test", feature = "rustdoc")))]
#[cfg(not(any(target_os = "android", feature = "test")))]
compile_error!("android-ndk-sys only supports compiling for Android");

#[cfg(any(
all(
any(target_os = "android", feature = "test"),
any(target_arch = "arm", target_arch = "armv7")
),
feature = "rustdoc"
#[cfg(all(
any(target_os = "android", feature = "test"),
any(target_arch = "arm", target_arch = "armv7")
))]
include!("ffi_arm.rs");

Expand Down
4 changes: 4 additions & 0 deletions ndk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

# 0.2.1 (2020-10-15)

- Fix documentation build on docs.rs

# 0.2.0 (2020-09-15)

- **Breaking:** Updated to use [ndk-sys 0.2.0](../ndk-sys/CHANGELOG.md#020-2020-09-15)
Expand Down
18 changes: 11 additions & 7 deletions ndk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ndk"
version = "0.2.0"
version = "0.2.1"
authors = ["The Rust Windowing contributors"]
edition = "2018"
description = "Safe Rust bindings to the Android NDK"
Expand All @@ -12,8 +12,6 @@ homepage = "https://github.com/rust-windowing/android-ndk-rs"
repository = "https://github.com/rust-windowing/android-ndk-rs"

[features]
rustdoc = ["ffi/rustdoc", "jni", "jni-glue", "all"]

all = ["aaudio", "bitmap", "hardware_buffer", "media", "trace", "api-level-30"]

aaudio = ["ffi/aaudio", "api-level-26"]
Expand All @@ -28,9 +26,6 @@ api-level-26 = ["api-level-24"]
api-level-29 = ["api-level-26"]
api-level-30 = ["api-level-29"]

[package.metadata.docs.rs]
features = ["rustdoc"]

[dependencies]
num_enum = "0.4.2"
jni-sys = "0.3.0"
Expand All @@ -47,4 +42,13 @@ optional = true
[dependencies.ffi]
package = "ndk-sys"
path = "../ndk-sys"
version = "0.2.0"
version = "0.2.1"

[package.metadata.docs.rs]
features = ["jni", "jni-glue", "all"]
targets = [
"aarch64-linux-android",
"armv7-linux-androideabi",
"i686-linux-android",
"x86_64-linux-android",
]

0 comments on commit 7d36455

Please sign in to comment.