Cargo.toml (4567B)
1 [package] 2 name = "notedeck" 3 version = "0.1.0" 4 authors = ["William Casarin <jb55@jb55.com>"] 5 edition = "2021" 6 default-run = "notedeck" 7 #rust-version = "1.60" 8 9 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 10 11 [lib] 12 crate-type = ["lib", "cdylib"] 13 14 [dependencies] 15 #egui-android = { git = "https://github.com/jb55/egui-android.git" } 16 egui = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb" } 17 eframe = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb", package = "eframe", default-features = false, features = [ "wgpu", "wayland", "x11", "android-native-activity" ] } 18 egui_extras = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb", package = "egui_extras", features = ["all_loaders"] } 19 ehttp = "0.2.0" 20 egui_tabs = { git = "https://github.com/damus-io/egui-tabs", branch = "egui-0.28" } 21 egui_nav = { git = "https://github.com/damus-io/egui-nav", rev = "6ba42de2bae384d10e35c532f3856b81d2e9f645" } 22 egui_virtual_list = { git = "https://github.com/jb55/hello_egui", branch = "egui-0.28", package = "egui_virtual_list" } 23 reqwest = { version = "0.12.4", default-features = false, features = [ "rustls-tls-native-roots" ] } 24 image = { version = "0.25", features = ["jpeg", "png", "webp"] } 25 log = "0.4.17" 26 poll-promise = { version = "0.3.0", features = ["tokio"] } 27 serde_derive = "1" 28 serde = { version = "1", features = ["derive"] } # You only need this if you want app persistence 29 tracing = "0.1.40" 30 #wasm-bindgen = "0.2.83" 31 nostrdb = { git = "https://github.com/damus-io/nostrdb-rs", rev = "9bbafd8a2e904b77a51e7cfca71eb5bb5650e829" } 32 #nostrdb = { path = "/Users/jb55/dev/github/damus-io/nostrdb-rs" } 33 #nostrdb = "0.3.4" 34 enostr = { path = "enostr" } 35 serde_json = "1.0.89" 36 env_logger = "0.10.0" 37 puffin_egui = { version = "0.27.0", optional = true } 38 puffin = { version = "0.19.0", optional = true } 39 hex = "0.4.3" 40 base32 = "0.4.0" 41 strum = "0.26" 42 strum_macros = "0.26" 43 bitflags = "2.5.0" 44 uuid = { version = "1.10.0", features = ["v4"] } 45 indexmap = "2.6.0" 46 47 48 [target.'cfg(target_os = "macos")'.dependencies] 49 security-framework = "2.11.0" 50 51 52 [features] 53 default = [] 54 profiling = ["puffin", "puffin_egui", "eframe/puffin"] 55 56 [profile.small] 57 inherits = 'release' 58 opt-level = 'z' # Optimize for size 59 lto = true # Enable link-time optimization 60 codegen-units = 1 # Reduce number of codegen units to increase optimizations 61 panic = 'abort' # Abort on panic 62 strip = true # Strip symbols from binary* 63 64 # web: 65 [target.'cfg(target_arch = "wasm32")'.dependencies] 66 console_error_panic_hook = "0.1.6" 67 tracing-wasm = "0.2" 68 wasm-bindgen-futures = "0.4" 69 70 # native: 71 [target.'cfg(not(target_arch = "wasm32"))'.dependencies] 72 tokio = { version = "1.16", features = ["macros", "rt-multi-thread", "fs"] } 73 tracing-subscriber = "0.3" 74 75 76 [target.'cfg(target_os = "android")'.dependencies] 77 android_logger = "0.11.1" 78 android-activity = { version = "0.4", features = [ "native-activity" ] } 79 #winit = "0.28.6" 80 winit = { version = "0.29", features = [ "android-native-activity" ] } 81 #winit = { git="https://github.com/rust-windowing/winit.git", rev = "2a58b785fed2a3746f7c7eebce95bce67ddfd27c", features = ["android-native-activity"] } 82 83 [package.metadata.android] 84 package = "com.damus.app" 85 apk_name = "damus" 86 #assets = "assets" 87 88 [[package.metadata.android.uses_feature]] 89 name = "android.hardware.vulkan.level" 90 required = true 91 version = 1 92 93 [[package.metadata.android.uses_permission]] 94 name = "android.permission.WRITE_EXTERNAL_STORAGE" 95 max_sdk_version = 18 96 97 [[package.metadata.android.uses_permission]] 98 name = "android.permission.READ_EXTERNAL_STORAGE" 99 max_sdk_version = 18 100 101 [package.metadata.android.signing.release] 102 path = "damus.keystore" 103 keystore_password = "damuskeystore" 104 105 [[package.metadata.android.uses_permission]] 106 name = "android.permission.INTERNET" 107 108 [package.metadata.android.application] 109 label = "Damus" 110 111 [[bin]] 112 name = "notedeck" 113 path = "src/bin/notedeck.rs" 114 115 [[bin]] 116 name = "ui_preview" 117 path = "src/ui_preview/main.rs" 118 119 [patch.crates-io] 120 egui = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb" } 121 eframe = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb", package = "eframe" } 122 emath = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb", package = "emath" } 123 egui_extras = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb", package = "egui_extras" }