jni-android-sys 0.0.3

Autogenerated glue code for access Android JVM APIs from Rust
[package]

name = "jni-android-sys"

version = "0.0.3"

authors = ["MaulingMonkey <git@maulingmonkey.com>"]

edition = "2018"

description = "Autogenerated glue code for access Android JVM APIs from Rust"

documentation = "https://docs.rs/jni-bindgen/"

repository = "https://github.com/MaulingMonkey/jni-bindgen"

keywords = ["jvm", "jni", "bindgen", "android"]

categories = ["external-ffi-bindings", "os"]

license = "MIT OR Apache-2.0"

include = ["/build.rs", "/jni-bindgen.toml", "/src/lib.rs", "/src/reference/*", "/Cargo.toml", "../LICENSE-MIT", "../LICENSE-APACHE", "Readme.md"]

build = "build.rs"



[dependencies]

cfg-if      = "0.1.9"

jni-glue    = { version = "=0.0.3", path = "../jni-glue" }



[build-dependencies]

jni-bindgen = { version = "=0.0.3", path = "../jni-bindgen" }



[features]

default = []



locally-generate = [] # Requires the appropriate Android SDK version be installed.  Generate the source code locally instead of using the included version.

locally-verify   = [] # Requires the appropriate Android SDK version be installed.  Generate the source code locally, and verify the included version matches.

force-define     = [] # By default, the JNI APIs are only compiled against android targets, but this will force them to be defined on windows, linux, OS X, etc. for documentation purpouses.



# The android API level to use.  Note that only api-level-28 is properly tested/supported for now.

# https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels

# The effective API level used by this crate will be the largest one specified.

# That is, if you specify api-level-7 and api-level-13, you'll get all the APIs in 13 defined.

api-level-1  = []

api-level-2  = ["api-level-1"]

api-level-3  = ["api-level-2"]

api-level-4  = ["api-level-3"]

api-level-5  = ["api-level-4"]

api-level-6  = ["api-level-5"]

api-level-7  = ["api-level-6"]

api-level-8  = ["api-level-7"]

api-level-9  = ["api-level-8"]

api-level-10 = ["api-level-9"]

api-level-11 = ["api-level-10"]

api-level-12 = ["api-level-11"]

api-level-13 = ["api-level-12"]

api-level-14 = ["api-level-13"]

api-level-15 = ["api-level-14"]

api-level-16 = ["api-level-15"]

api-level-17 = ["api-level-16"]

api-level-18 = ["api-level-17"]

api-level-19 = ["api-level-18"]

api-level-20 = ["api-level-19"]

api-level-21 = ["api-level-20"]

api-level-22 = ["api-level-21"]

api-level-23 = ["api-level-22"]

api-level-24 = ["api-level-23"]

api-level-25 = ["api-level-24"]

api-level-26 = ["api-level-25"]

api-level-27 = ["api-level-26"]

api-level-28 = ["api-level-27"]

api-level-29 = ["api-level-28"]

# WHEN ADDING A NEW API LEVEL:

# - [ ] Add the feature here, obviously.

# - [ ] Make sure to modify REQUESTED_API_LEVEL in build.rs!

# - [ ] Make sure to modify the includes of "reference-NN.rs"!

# - [ ] Make sure to modify the includes of "locally-generated-NN.rs"!



[package.metadata.docs.rs]

features = [ "api-level-28", "force-define" ]

default-target = "x86_64-unknown-linux-gnu" # Doesn't matter too much, but at least this kinda looks like Android.