[package] name = "nigig-core" version = "0.1.0" edition = "2021" [features] default = ["native"] native = ["dep:tokio", "dep:reqwest", "dep:lettre", "matrix_client/native", "async-rt"] async-rt = [] [dependencies] matrix_client = { path = "../matrix_client", default-features = false } nigig-system-prefs = { path = "../nigig-system-prefs" } makepad-widgets = { git = "https://gitdab.com/andodeki/makepad", rev = "a79f0dce4d477e2232344facca0798d3f25043ec"} serde = { version = "1", features = ["derive"] } serde_json = "1" chrono = { version = "0.4", features = ["serde"] } robius-directories = { git = "https://github.com/project-robius/robius", rev = "b766e62b0600f5d2ee21cc6995648346fc277bd8" } robius-ussd = { path = "../robius-ussd", features = ["serde"] } cfg-if = "1.0" futures = { version = "0.3", default-features = false, features = ["alloc"] } error_set = "0.9.1" url = "2.5.0" clap = { version = "4.0.16", features = ["derive"] } robius-open = { git = "https://github.com/project-robius/robius", rev = "b766e62b0600f5d2ee21cc6995648346fc277bd8" } postcard = { version = "1.1.3", features = ["use-std"] } rand = "0.8.5" csv = "1.3" image = { version = "0.25", default-features = false, features = ["png"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] tokio = { version = "1", features = ["rt", "macros", "sync", "fs", "io-util"], optional = true } reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "stream"], optional = true } robius-location = { git = "https://github.com/project-robius/robius", rev = "b766e62b0600f5d2ee21cc6995648346fc277bd8" } lettre = { version = "0.11", default-features = false, features = [ "tokio1", "tokio1-rustls", "smtp-transport", "pool", "hostname", "builder", "ring", "webpki-roots", ], optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" js-sys = "0.3" getrandom = { version = "0.2", features = ["js"] } web-sys = { version = "0.3", features = [ "Window", "console", "Request", "RequestInit", "Response", "Headers", ] }