2022-11-06 05:12:17 +00:00
[ package ]
2022-11-07 00:42:20 +00:00
name = "damus"
2022-11-06 05:12:17 +00:00
version = "0.1.0"
2022-11-07 00:42:20 +00:00
authors = [ "William Casarin <jb55@jb55.com>" ]
2022-11-06 05:12:17 +00:00
edition = "2021"
2022-11-30 02:42:38 +00:00
#rust-version = "1.60"
2022-11-06 05:12:17 +00:00
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2022-11-30 02:27:43 +00:00
[ lib ]
crate-type = [ "lib" , "cdylib" ]
2022-11-06 05:12:17 +00:00
[ dependencies ]
2022-12-11 00:57:46 +00:00
#egui-android = { git = "https://github.com/jb55/egui-android.git" }
2024-02-07 20:06:13 +00:00
egui = "0.26.0"
eframe = { version = "0.26.0" , default-features = false , features = [ "glow" , "wgpu" , "android-native-activity" ] }
2023-07-07 02:35:21 +00:00
#eframe = "0.22.0"
2024-02-07 20:06:13 +00:00
egui_extras = { version = "0.26.0" , features = [ "image" , "svg" ] }
2022-11-07 03:32:13 +00:00
ehttp = "0.2.0"
image = { version = "0.24" , features = [ "jpeg" , "png" , "webp" ] }
2022-11-30 02:27:43 +00:00
log = "0.4.17"
2023-07-06 17:44:08 +00:00
poll-promise = { git = "https://github.com/EmbarkStudios/poll-promise" , rev = "b493586107b0e508860aa2e9d18049fd8cd9d13f" } # todo: update to 0.2.1 when it's released. 0.2.0 was crashing on m1
2022-11-07 04:54:30 +00:00
serde_derive = "1"
2022-11-30 02:27:43 +00:00
serde = { version = "1" , features = [ "derive" ] } # You only need this if you want app persistence
2024-02-07 23:18:10 +00:00
tracing = "0.1.40"
2022-12-11 00:57:46 +00:00
#wasm-bindgen = "0.2.83"
2022-12-11 23:46:18 +00:00
enostr = { path = "enostr" }
2022-12-12 22:33:37 +00:00
serde_json = "1.0.89"
2023-07-01 18:23:41 +00:00
env_logger = "0.10.0"
2023-07-05 23:40:40 +00:00
shatter = "0.1.1"
2024-02-07 20:06:13 +00:00
puffin_egui = { version = "0.25.0" , optional = true }
2024-02-10 21:57:46 +00:00
puffin = { version = "0.19.0" , optional = true }
nostrdb = { git = "https://github.com/damus-io/nostrdb-rs" , rev = "e513b6ed516a9adf757c1f7ac26cd3d544c391b2" }
2022-11-30 02:27:43 +00:00
2023-07-07 02:35:21 +00:00
[ features ]
default = [ ]
profiling = [ "puffin" , "puffin_egui" , "eframe/puffin" ]
2022-11-06 05:12:17 +00:00
2023-10-01 03:45:38 +00:00
[ profile . small ]
inherits = 'release'
opt-level = 'z' # Optimize for size
lto = true # Enable link-time optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations
panic = 'abort' # Abort on panic
strip = true # Strip symbols from binary*
2022-11-06 05:12:17 +00:00
# web:
[ target . 'cfg(target_arch = "wasm32")' . dependencies ]
console_error_panic_hook = "0.1.6"
tracing-wasm = "0.2"
2022-12-12 22:33:37 +00:00
wasm-bindgen-futures = "0.4"
2022-11-06 05:12:17 +00:00
2022-12-12 01:09:44 +00:00
# native:
[ target . 'cfg(not(target_arch = "wasm32"))' . dependencies ]
tokio = { version = "1.16" , features = [ "macros" , "rt-multi-thread" ] }
tracing-subscriber = "0.3"
2023-07-09 19:17:54 +00:00
2022-12-11 00:57:46 +00:00
[ target . 'cfg(target_os = "android")' . dependencies ]
android_logger = "0.11.1"
2023-07-09 19:17:54 +00:00
android-activity = { version = "0.4" , features = [ "native-activity" ] }
#winit = "0.28.6"
2024-02-10 02:55:02 +00:00
winit = { version = "0.29" , features = [ "android-native-activity" ] }
2022-12-11 00:57:46 +00:00
#winit = { git="https://github.com/rust-windowing/winit.git", rev = "2a58b785fed2a3746f7c7eebce95bce67ddfd27c", features = ["android-native-activity"] }
2022-11-30 02:27:43 +00:00
[ package . metadata . android ]
2022-12-11 00:57:46 +00:00
package = "com.damus.app"
2022-11-30 02:27:43 +00:00
apk_name = "damus"
#assets = "assets"
[ [ package . metadata . android . uses_feature ] ]
name = "android.hardware.vulkan.level"
required = true
version = 1
[ [ package . metadata . android . uses_permission ] ]
name = "android.permission.WRITE_EXTERNAL_STORAGE"
2024-02-10 02:55:25 +00:00
max_sdk_version = 18
2022-11-30 02:27:43 +00:00
2024-02-10 21:57:46 +00:00
[ [ package . metadata . android . uses_permission ] ]
name = "android.permission.READ_EXTERNAL_STORAGE"
max_sdk_version = 18
2023-07-09 19:29:39 +00:00
[ package . metadata . android . signing . release ]
path = "damus.keystore"
keystore_password = "damuskeystore"
2022-11-30 19:23:47 +00:00
[ [ package . metadata . android . uses_permission ] ]
name = "android.permission.INTERNET"
2022-12-11 00:57:46 +00:00
[ package . metadata . android . application ]
label = "Damus"