# Setup [tasks.cargo-upgrade] private = true command = "cargo" args = ["upgrade", "--pinned"] [tasks.cargo-update] private = true command = "cargo" args = ["update"] [tasks.setup] category = "LOCAL USAGE" dependencies = ["cargo-upgrade", "cargo-update"] # Docs [tasks.docs] category = "LOCAL USAGE" command = "cargo" env = { RUSTDOCFLAGS = "--cfg surrealdb_unstable" } args = ["doc", "--open", "--no-deps", "--package", "surrealdb", "--features", "rustls,native-tls,protocol-ws,protocol-http,kv-mem,kv-speedb,kv-rocksdb,kv-tikv,http,scripting,jwks,sql2"] # Test [tasks.test] category = "LOCAL USAGE" command = "cargo" env = { RUSTFLAGS = "--cfg surrealdb_unstable", RUSTDOCFLAGS = "--cfg surrealdb_unstable", RUST_MIN_STACK={ value = "4194304", condition = { env_not_set = ["RUST_MIN_STACK"] } } } args = ["test", "--workspace", "--no-fail-fast", "--features", "sql2"] # Check [tasks.cargo-check] category = "LOCAL USAGE" command = "cargo" env = { RUSTFLAGS = "--cfg surrealdb_unstable" } args = ["check", "--workspace", "--features", "${DEV_FEATURES}"] [tasks.cargo-fmt] category = "LOCAL USAGE" command = "cargo" args = ["fmt", "--all", "--check"] [tasks.cargo-fmt-unlinked] category = "LOCAL USAGE" script = """ set -e cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/ cargo fmt --all --check -- ./lib/tests/**/*.rs ./core/src/kvs/tests/*.rs """ [tasks.cargo-clippy] category = "LOCAL USAGE" command = "cargo" env = { RUSTFLAGS = "--cfg surrealdb_unstable" } args = ["clippy", "--all-targets", "--all-features", "--", "-D", "warnings"] [tasks.check] category = "LOCAL USAGE" dependencies = ["cargo-check", "cargo-fmt", "cargo-fmt-unlinked", "cargo-clippy"] [tasks.check-wasm] category = "LOCAL USAGE" dependencies = ["ci-check-wasm"] # Clean [tasks.clean] category = "LOCAL USAGE" command = "cargo" args = ["clean"] # Bench [tasks.bench] category = "LOCAL USAGE" command = "cargo" env = { RUSTFLAGS = "--cfg surrealdb_unstable" } args = ["bench", "--package", "surrealdb", "--no-default-features", "--features", "kv-mem,http,scripting,jwks,sql2", "--", "${@}"] # Run [tasks.run] category = "LOCAL USAGE" command = "cargo" env = { RUSTFLAGS = "--cfg surrealdb_unstable" } args = ["run", "--no-default-features", "--features", "${DEV_FEATURES}", "--", "${@}"] # Serve [tasks.serve] category = "LOCAL USAGE" command = "cargo" env = { RUSTFLAGS = "--cfg surrealdb_unstable" } args = ["run", "--no-default-features", "--features", "${DEV_FEATURES}", "--", "start", "--allow-all", "${@}"] # SQL [tasks.sql] category = "LOCAL USAGE" command = "cargo" env = { RUSTFLAGS = "--cfg surrealdb_unstable" } args = ["run", "--no-default-features", "--features", "${DEV_FEATURES}", "--", "sql", "--pretty", "${@}"] # Quick [tasks.quick] category = "LOCAL USAGE" command = "cargo" args = ["build", "${@}"] # Build [tasks.build] category = "LOCAL USAGE" command = "cargo" env = { RUSTFLAGS = "--cfg surrealdb_unstable" } args = ["build", "--release", "${@}"] # Default [tasks.default] category = "LOCAL USAGE" clear = true dependencies = ["check", "test", "quick"]