Cargo.toml (4748B)
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", features = ["serde"] } 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 = "956338a90e09c7cda951d554626483e0cdbc7825" } 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 dirs = "5.0.1" 47 tracing-appender = "0.2.3" 48 urlencoding = "2.1.3" 49 open = "5.3.0" 50 51 [dev-dependencies] 52 tempfile = "3.13.0" 53 54 [target.'cfg(target_os = "macos")'.dependencies] 55 security-framework = "2.11.0" 56 57 58 [features] 59 default = [] 60 profiling = ["puffin", "puffin_egui", "eframe/puffin"] 61 62 [profile.small] 63 inherits = 'release' 64 opt-level = 'z' # Optimize for size 65 lto = true # Enable link-time optimization 66 codegen-units = 1 # Reduce number of codegen units to increase optimizations 67 panic = 'abort' # Abort on panic 68 strip = true # Strip symbols from binary* 69 70 # web: 71 [target.'cfg(target_arch = "wasm32")'.dependencies] 72 console_error_panic_hook = "0.1.6" 73 tracing-wasm = "0.2" 74 wasm-bindgen-futures = "0.4" 75 76 # native: 77 [target.'cfg(not(target_arch = "wasm32"))'.dependencies] 78 tokio = { version = "1.16", features = ["macros", "rt-multi-thread", "fs"] } 79 tracing-subscriber = { version = "0.3", features = ["env-filter"] } 80 81 82 [target.'cfg(target_os = "android")'.dependencies] 83 android_logger = "0.11.1" 84 android-activity = { version = "0.4", features = [ "native-activity" ] } 85 #winit = "0.28.6" 86 winit = { version = "0.29", features = [ "android-native-activity" ] } 87 #winit = { git="https://github.com/rust-windowing/winit.git", rev = "2a58b785fed2a3746f7c7eebce95bce67ddfd27c", features = ["android-native-activity"] } 88 89 [package.metadata.android] 90 package = "com.damus.app" 91 apk_name = "damus" 92 #assets = "assets" 93 94 [[package.metadata.android.uses_feature]] 95 name = "android.hardware.vulkan.level" 96 required = true 97 version = 1 98 99 [[package.metadata.android.uses_permission]] 100 name = "android.permission.WRITE_EXTERNAL_STORAGE" 101 max_sdk_version = 18 102 103 [[package.metadata.android.uses_permission]] 104 name = "android.permission.READ_EXTERNAL_STORAGE" 105 max_sdk_version = 18 106 107 [package.metadata.android.signing.release] 108 path = "damus.keystore" 109 keystore_password = "damuskeystore" 110 111 [[package.metadata.android.uses_permission]] 112 name = "android.permission.INTERNET" 113 114 [package.metadata.android.application] 115 label = "Damus" 116 117 [[bin]] 118 name = "notedeck" 119 path = "src/bin/notedeck.rs" 120 121 [[bin]] 122 name = "ui_preview" 123 path = "src/ui_preview/main.rs" 124 125 [patch.crates-io] 126 egui = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb" } 127 eframe = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb", package = "eframe" } 128 emath = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb", package = "emath" } 129 egui_extras = { git = "https://github.com/emilk/egui", rev = "fcb7764e48ce00f8f8e58da10f937410d65b0bfb", package = "egui_extras" }