107 lines
3.9 KiB
TOML
107 lines
3.9 KiB
TOML
[package]
|
|
name = "mize"
|
|
version = "0.0.1"
|
|
edition = "2021"
|
|
license = "GPL-3.0"
|
|
description = 'A strongly typed "filesystem" for the age of connectivity.'
|
|
repository = "https://git.ppc.social/ppc/mize"
|
|
|
|
[lib]
|
|
name = "mize"
|
|
path = "src/lib.rs"
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[features]
|
|
default = [ "target-os" ]
|
|
target-os = [ "clap", "home", "nix", "sysinfo", "ciborium/default", "tracing-subscriber", "async", "tracing-subscriber/env-filter", "libloading", "ciborium-io", "tracing-core", "tar", "flate2", "http_req", "tokio/net", "tokio", "tokio/rt-multi-thread", "tokio/io-util" ]
|
|
target-js = [ "wasm-bindgen", "console_error_panic_hook", "web-sys", "web-sys/Worker", "web-sys/Window", "web-sys/Request", "web-sys/RequestInit", "web-sys/RequestMode", "web-sys/Response", "web-sys/WorkerOptions", "web-sys/WorkerType", "serde-wasm-bindgen", "wasm-bindgen-futures", "wee_alloc", "ciborium/default" ]
|
|
async = [ "tokio", ]
|
|
|
|
[workspace]
|
|
members = [
|
|
"marts",
|
|
"macros",
|
|
"apps/os",
|
|
"apps/obsidian-plugin",
|
|
]
|
|
default-members = [
|
|
"apps/obsidian-plugin",
|
|
]
|
|
resolver = "2"
|
|
|
|
[package.metadata.wasm-pack.profile.dev]
|
|
wasm-opt = false # for debug build times
|
|
|
|
|
|
[dependencies]
|
|
# core dependencies
|
|
colored = "2.0.0"
|
|
uuid = "1.3.0"
|
|
ciborium = { version = "0.2.2", default-features = false }
|
|
serde = "1.0.203"
|
|
interner = { git = "https://github.com/c2vi/interner" }
|
|
tracing = "0.1.40"
|
|
serde_json = { version = "1.0.117", optional = false }
|
|
toml = { version = "0.8.13", features = ["parse"], optional = false }
|
|
dyn-clone = "1.0.17"
|
|
sha2 = "0.10.8"
|
|
flume = { version = "0.11.1", default-features = false, features = [ "async" ] }
|
|
mize_macros = { path = "./macros" }
|
|
async-trait = "0.1.89"
|
|
|
|
# wasm dependencies
|
|
wasm-bindgen = { version = "0.2.84", optional = true }
|
|
console_error_panic_hook = { version = "0.1.7", optional = true }
|
|
web-sys = { version = "0.3.70", optional = true }
|
|
serde-wasm-bindgen = { version = "0.6.5", optional = true }
|
|
wasm-bindgen-futures = { version = "0.4.49", optional = true }
|
|
wee_alloc = { version = "0.4.5", optional = true }
|
|
|
|
# os dependencies
|
|
clap = { version = "4.4.11", features = ["cargo"], optional = true }
|
|
home = { version = "0.5.9", optional = true }
|
|
daemonize = { version = "0.5.0", optional = true }
|
|
nix = { version = "0.27.1", features = ["signal"], optional = true }
|
|
sysinfo = { version = "0.30.12", optional = true }
|
|
tracing-subscriber = { version = "0.3.18", optional = true }
|
|
tokio = { version = "1.46.1", features = ["sync", "rt" ], optional = true, default-features = false }
|
|
libloading = { version = "0.8.5", optional = true }
|
|
ciborium-io = { version = "0.2.2", optional = true }
|
|
tracing-core = { version = "0.1.32", optional = true }
|
|
tar = { version = "0.4.42", optional = true }
|
|
flate2 = { version = "1.0.33", optional = true }
|
|
http_req = { version = "0.12.0", default-features = false, features = [ "rust-tls" ], optional = true }
|
|
#http_req = { git = "https://github.com/c2vi/http_req", optional = true, default-features = false, features = [ "native-tls" ] }
|
|
|
|
# bare dependencies
|
|
|
|
# unused dependencies
|
|
axum = { version = "0.6.1", features = ["ws", "headers"], optional = true }
|
|
axum-extra = { version = "0.4.2", features = ["spa"], optional = true }
|
|
axum-macros = { version = "0.3.0", optional = true }
|
|
#tokio-core = "0.1.18"
|
|
#tokio-io = "0.1.13"
|
|
|
|
#tokio-stream = { version = "0.1.9", optional = true }
|
|
#derive_more = "0.99.17"
|
|
#futures-util = "0.3.24"
|
|
#itertools = "0.10.5"
|
|
#lazy_static = "1.4.0"
|
|
#rmp-serde = "1.1.1"
|
|
#rmpv = { version = "1.0.0", features = ["serde", "with-serde"] }
|
|
#toml = "0.5.10"
|
|
#tower-http = "0.3.5"
|
|
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = { version = "0.3.34" }
|
|
|
|
[profile.release]
|
|
# Tell `rustc` to optimize for small code size.
|
|
opt-level = "s"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
# to make uuid be able to use browser apis for generating random numbers
|
|
# needs to be the same version as uuid uses
|
|
getrandom = { version = "0.4.3", features = ["wasm_js"] }
|