[package] name = "damus" version = "0.1.0" authors = ["William Casarin "] edition = "2021" rust-version = "1.60" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] crate-type = ["lib", "cdylib"] [dependencies] chrono = "0.4" egui = "0.19.0" egui_extras = { version = "0.19.0", features = ["image", "svg"] } egui_wgpu_backend = "0.20.0" egui-winit = "0.19.0" egui_winit_platform = {git = "https://github.com/inferrna/egui_winit_platform.git"} ehttp = "0.2.0" epi = "0.17.0" hex = "0.4.3" image = { version = "0.24", features = ["jpeg", "png", "webp"] } log = "0.4.17" #nostr_rust = { git = "git://jb55.com/nostr_rust", rev = "ccf7e521fe3bb9ca8f86516aef2c1f71db0213ed" } poll-promise = "0.2.0" pollster = "0.2" serde_derive = "1" serde_json = { version = "1", default-features = false, features = ["std"] } serde = { version = "1", features = ["derive"] } # You only need this if you want app persistence sha2 = "0.10.6" tracing = "0.1.37" tracing-subscriber = "0.3" wgpu = "0.14.0" #winit = "0.27.1" [target.'cfg(debug_assertions)'.dependencies] simple_logger = "*" android_logger = "0.11.1" # This dependency will only be included when targeting Android [target.'cfg(not(target_os = "android"))'.dependencies] winit = { git="https://github.com/rust-windowing/winit.git" } # This dependency will only be included when targeting Android [target.'cfg(target_os = "android")'.dependencies] winit = { git="https://github.com/rust-windowing/winit.git", default-features = false, features = ["android-native-activity"] } # web: [target.'cfg(target_arch = "wasm32")'.dependencies] console_error_panic_hook = "0.1.6" tracing-wasm = "0.2" # This dependency will only be included when targeting Android #[target.'cfg(target_os = "android")'.dependencies] #winit = { git="https://github.com/rust-windowing/winit.git", default-features = false, features = ["android-native-activity"] } [package.metadata.android] package = "com.damus" 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" max_sdk_version = 18 # See https://developer.android.com/guide/topics/manifest/application-element [package.metadata.android.application] label = "Damus" # See https://developer.android.com/guide/topics/manifest/application-element#debug # # Defaults to false. debuggable = false # See https://developer.android.com/guide/topics/manifest/application-element#theme # # Example shows setting the theme of an application to fullscreen. #theme = "@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen" # Virtual path your application's icon for any mipmap level. # If not specified, an icon will not be included in the APK. #icon = "@mipmap/ic_launcher" # See https://developer.android.com/guide/topics/manifest/application-element#label # # Defaults to the compiled artifact's name. #[profile.release] #opt-level = 2 # fast and small wasm #[patch.crates-io] # If you want to use the bleeding edge version of egui and eframe: # egui = { git = "https://github.com/emilk/egui", branch = "master" } # eframe = { git = "https://github.com/emilk/egui", branch = "master" } # If you fork https://github.com/emilk/egui you can test with: #egui = { path = "../egui/crates/egui" } #eframe = { path = "../egui/crates/eframe" } #egui_extras = { path = "../egui/crates/egui_extras", features = ["image", "svg"] }