Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ndk-glue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ test = ["ndk/test", "ndk-sys/test"]
logger = ["android_logger", "ndk-macro/logger"]

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
targets = [
"aarch64-linux-android",
"armv7-linux-androideabi",
Expand Down
2 changes: 2 additions & 0 deletions ndk-glue/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

use log::Level;
use ndk::input_queue::InputQueue;
use ndk::looper::{FdEvent, ForeignLooper, ThreadLooper};
Expand Down
3 changes: 3 additions & 0 deletions ndk-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ darling = "0.13"
[features]
default = []
logger = []

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
2 changes: 2 additions & 0 deletions ndk-macro/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

use darling::FromMeta;
use proc_macro::TokenStream;
use syn::{parse_macro_input, ItemFn};
Expand Down
1 change: 1 addition & 0 deletions ndk-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ bitmap = []
media = []

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
targets = [
"aarch64-linux-android",
"armv7-linux-androideabi",
Expand Down
1 change: 1 addition & 0 deletions ndk-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#![allow(deref_nullptr)]
// Test setup lints
#![cfg_attr(test, allow(dead_code))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

use jni_sys::*;

Expand Down
1 change: 1 addition & 0 deletions ndk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ version = "0.3.0"

[package.metadata.docs.rs]
features = ["jni", "jni-glue", "all"]
rustdoc-args = ["--cfg", "docsrs"]
targets = [
"aarch64-linux-android",
"armv7-linux-androideabi",
Expand Down
1 change: 1 addition & 0 deletions ndk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//!
//! [Android NDK]: https://developer.android.com/ndk/reference
#![warn(missing_debug_implementations, trivial_casts)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

pub mod asset;
pub mod audio;
Expand Down