ios work
This commit is contained in:
@@ -6,22 +6,23 @@ edition = "2021"
|
||||
license = "LGPL-2.0-or-later OR MPL-2.0 OR (MIT AND BSD-3-Clause)"
|
||||
|
||||
[lib]
|
||||
crate-type = ["rlib"]
|
||||
# Staticlib for iOS tests, rlib for everything else
|
||||
crate-type = [ "staticlib", "rlib" ]
|
||||
|
||||
[features]
|
||||
default = [ "tracing" ]
|
||||
default = []
|
||||
rt-async-std = [ "async-std", "async_executors/async_std", ]
|
||||
rt-tokio = [ "tokio", "tokio-util", "async_executors/tokio_tp", "async_executors/tokio_io", "async_executors/tokio_timer", ]
|
||||
|
||||
android_tests = []
|
||||
ios_tests = [ "simplelog" ]
|
||||
ios_tests = []
|
||||
tracking = []
|
||||
tracing = [ "dep:tracing" ]
|
||||
log = [ "dep:log" ]
|
||||
tracing = [ "dep:tracing", "dep:tracing-subscriber" ]
|
||||
|
||||
[dependencies]
|
||||
tracing = { version = "^0", features = ["log", "attributes"], optional = true }
|
||||
log = { version = "^0", optional = true }
|
||||
tracing-subscriber = { version = "^0", optional = true }
|
||||
log = { version = "^0" }
|
||||
eyre = "^0"
|
||||
static_assertions = "^1"
|
||||
cfg-if = "^1"
|
||||
@@ -31,7 +32,7 @@ parking_lot = "^0"
|
||||
once_cell = "^1"
|
||||
owo-colors = "^3"
|
||||
stop-token = { version = "^0", default-features = false }
|
||||
rand = "0.7"
|
||||
rand = "^0.7"
|
||||
|
||||
# Dependencies for native builds only
|
||||
# Linux, Windows, Mac, iOS, Android
|
||||
@@ -69,15 +70,13 @@ tracing-android = { version = "^0", optional = true }
|
||||
|
||||
# Dependencies for iOS
|
||||
[target.'cfg(target_os = "ios")'.dependencies]
|
||||
simplelog = { version = "^0", optional = true }
|
||||
simplelog = { version = "^0.12", features = [ "test" ] }
|
||||
|
||||
### DEV DEPENDENCIES
|
||||
|
||||
[dev-dependencies]
|
||||
serial_test = "^0"
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
||||
simplelog = { version = "^0", features=["test"] }
|
||||
simplelog = { version = "^0.12", features = [ "test" ] }
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
||||
console_error_panic_hook = "^0"
|
||||
@@ -91,3 +90,8 @@ parking_lot = { version = "^0", features = ["wasm-bindgen"]}
|
||||
|
||||
[package.metadata.wasm-pack.profile.release]
|
||||
wasm-opt = ["-O", "--enable-mutable-globals"]
|
||||
|
||||
[package.metadata.ios]
|
||||
build_targets = ["aarch64-apple-ios", "aarch64-apple-ios-sim", "x86_64-apple-ios"]
|
||||
deployment_target = "12.0"
|
||||
build_id_prefix = "com.veilid.veilidtools"
|
||||
|
||||
Reference in New Issue
Block a user