diff --git a/Cargo.toml-E b/Cargo.toml-E new file mode 100644 index 0000000..980975d --- /dev/null +++ b/Cargo.toml-E @@ -0,0 +1,62 @@ +[workspace] +resolver = "2" +members = ["crates/*", "desktop", "web"] +default-members = ["desktop"] + +[workspace.package] +version = "1.0.0-beta5" +edition = "2024" +publish = false + +[workspace.dependencies] +# GPUI +gpui = { git = "https://github.com/zed-industries/zed" } +gpui_platform = { git = "https://github.com/zed-industries/zed", features = ["font-kit", "x11", "wayland"] } +gpui_linux = { git = "https://github.com/zed-industries/zed" } +gpui_windows = { git = "https://github.com/zed-industries/zed" } +gpui_macos = { git = "https://github.com/zed-industries/zed" } +gpui_tokio = { git = "https://github.com/zed-industries/zed" } +reqwest_client = { git = "https://github.com/zed-industries/zed" } + +# Nostr +nostr-lmdb = { git = "https://github.com/rust-nostr/nostr" } +nostr-memory = { git = "https://github.com/rust-nostr/nostr" } +nostr-blossom = { git = "https://github.com/rust-nostr/nostr" } +nostr-gossip-memory = { git = "https://github.com/rust-nostr/nostr" } +nostr-connect = { git = "https://github.com/rust-nostr/nostr" } +nostr-sdk = { git = "https://github.com/rust-nostr/nostr" } +nostr = { git = "https://github.com/rust-nostr/nostr", features = [ "nip59", "nip49", "nip44" ] } + +# Others +anyhow = "1.0.44" +chrono = { version = "0.4.38", features = ["wasmbind"] } +futures = "0.3" +itertools = "0.13.0" +log = "0.4" +oneshot = "0.1.10" +flume = { version = "0.11.1", default-features = false, features = ["async", "select"] } +rust-embed = { version = "8.5", features = ["include-exclude"] } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +schemars = "1" +smallvec = "1.14.0" +smol = "2" +webbrowser = "1.0.4" +tracing-subscriber = { version = "0.3.18", features = ["fmt", "env-filter"] } +errno = { version = "0.3.14", default-features = false } +instant = "0.1" + +[patch.crates-io] +# Use stacker's psm version which may have better WASM support +psm = { git = "https://github.com/rust-lang/stacker", branch = "master" } + +[profile.release] +strip = true +opt-level = "z" +lto = true +codegen-units = 1 +panic = "abort" + +[profile.profiling] +inherits = "release" +debug = true diff --git a/desktop/Cargo.toml-E b/desktop/Cargo.toml-E new file mode 100644 index 0000000..76dfb1f --- /dev/null +++ b/desktop/Cargo.toml-E @@ -0,0 +1,50 @@ +[package] +name = "coop" +version.workspace = true +edition.workspace = true +publish.workspace = true + +[[bin]] +name = "coop" +path = "src/main.rs" + +[package.metadata.packager] +name = "Coop" +product-name = "Coop" +description = "Chat Freely, Stay Private on Nostr" +identifier = "su.reya.coop" +category = "SocialNetworking" +version = "1.0.0-beta5" +out-dir = "../dist" +before-packaging-command = "cargo build --release" +resources = ["Cargo.toml", "src"] +icons = [ + "resources/32x32.png", + "resources/128x128.png", + "resources/128x128@2x.png", + "resources/icon.icns", + "resources/icon.ico", +] + +[dependencies] +assets = { path = "../crates/assets" } +workspace = { path = "../crates/workspace" } +ui = { path = "../crates/ui" } +theme = { path = "../crates/theme" } +common = { path = "../crates/common" } +state = { path = "../crates/state" } +device = { path = "../crates/device" } +chat = { path = "../crates/chat" } +settings = { path = "../crates/settings" } +auto_update = { path = "../crates/auto_update" } +person = { path = "../crates/person" } + +gpui.workspace = true +gpui_platform.workspace = true +gpui_linux.workspace = true +gpui_windows.workspace = true +gpui_macos.workspace = true +reqwest_client.workspace = true + +log.workspace = true +tracing-subscriber.workspace = true