[package] name = "marqdo" version = "2.7.1" edition = "2021" license = "Apache-2.0" description = "Marqdo — Markdown markers as an interpreted programming language" readme = "README.md" repository = "https://github.com/cflmy/marqdo" [[bin]] name = "marqdo" path = "src/main.rs" required-features = ["cli"] [features] default = ["native"] native = ["cli", "view", "net-host", "plugin-host", "exec-host", "fs-host", "tty"] cli = ["dep:clap"] view = ["dep:tiny_http"] net-host = ["dep:ureq", "dep:idna_adapter", "dep:zeroize", "dep:zip"] plugin-host = ["dep:libloading"] exec-host = ["dep:libc"] fs-host = [] tty = ["dep:libc"] wasm-core = [] [dependencies] anyhow = "1" chrono = { version = "0.4", default-features = false, features = ["clock", "std"] } clap = { version = "=4.4.18", features = ["derive"], optional = true } pulldown-cmark = "0.12" serde = { version = "1", features = ["derive"] } serde_json = { version = "1", features = ["float_roundtrip"] } thiserror = "1" tiny_http = { version = "0.12", optional = true } sha2 = { version = "=0.10.9", default-features = false } sha1 = { version = "=0.10.6", default-features = false } md-5 = { version = "=0.10.6", default-features = false } hmac = { version = "=0.12.1", default-features = false } getrandom = { version = "=0.2.17", default-features = false, features = ["std"] } # Mid M1: Unicode regex for lib/re (no backrefs; RE2-like). regex = { version = "=1.13.1", default-features = false, features = ["std", "unicode"] } # Pin for Cargo/rustc 1.81 (newer rustls/idna/zeroize need edition2024). ureq = { version = "=2.9.7", default-features = false, features = ["tls", "gzip"], optional = true } idna_adapter = { version = "=1.1.0", optional = true } zeroize = { version = "=1.8.1", optional = true } # Extract GitHub Release ext/native zips (`marqdo ext add` without local Rust). zip = { version = "=0.6.6", default-features = false, features = ["deflate"], optional = true } libloading = { version = "=0.8.6", optional = true } include_dir = "0.7" libc = { version = "0.2", optional = true } chrono-tz = "=0.10.0" toml = "=0.8.23" [target.'cfg(target_arch = "wasm32")'.dependencies] # Custom entropy — no `js`/wasm-bindgen imports (raw mq_* ABI + marqdo-bridge.js). chrono = { version = "0.4", default-features = false, features = ["alloc", "std"] } getrandom = { version = "=0.2.17", default-features = false, features = ["custom"] } [workspace] members = [ "plugins/demo", "plugins/engineering", "plugins/agent", "plugins/llm", "plugins/quantum", "plugins/linalg", "crates/marqdo-wasm", "crates/marqdo-plugin-sdk", ] # Official web plugin is Go (`plugins/web/`). The legacy Rust web plugin was # deleted from the tree (see CHANGELOG); git history keeps it if ever needed. resolver = "2" [dev-dependencies] assert_cmd = "=2.0.14" predicates = "=3.1.0" tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "net"] } tokio-tungstenite = "0.24" futures-util = "0.3" # Size-oriented profile for `marqdo-wasm` (C5). Use: cargo build -p marqdo-wasm --profile release-wasm --target wasm32-unknown-unknown [profile.release-wasm] inherits = "release" lto = true codegen-units = 1 opt-level = "z" strip = true panic = "abort"