[package]
edition = "2024"
name = "minigraf"
version = "1.0.0"
authors = ["Aditya Mukhopadhyay"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-config, single-file, embedded graph database with bi-temporal Datalog queries"
documentation = "https://docs.rs/minigraf"
readme = "README.md"
keywords = [
"graph",
"datalog",
"bitemporal",
"embedded",
"database",
]
categories = [
"database-implementations",
"embedded",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/project-minigraf/minigraf"
resolver = "2"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = [
"x86_64-unknown-linux-gnu",
"wasm32-unknown-unknown",
]
[features]
browser = [
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"dep:web-sys",
"dep:js-sys",
"dep:serde_json",
]
default = []
wasm = []
[lib]
name = "minigraf"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "minigraf"
path = "src/main.rs"
[[bin]]
name = "uniffi-bindgen"
path = "src/bin/uniffi_bindgen_stub.rs"
doc = false
[[example]]
name = "generate_compat_fixture"
path = "examples/generate_compat_fixture.rs"
[[example]]
name = "memory_profile"
path = "examples/memory_profile.rs"
[[test]]
name = "aggregation_test"
path = "tests/aggregation_test.rs"
[[test]]
name = "bitemporal_test"
path = "tests/bitemporal_test.rs"
[[test]]
name = "btree_v6_test"
path = "tests/btree_v6_test.rs"
[[test]]
name = "complex_queries_test"
path = "tests/complex_queries_test.rs"
[[test]]
name = "concurrency_test"
path = "tests/concurrency_test.rs"
[[test]]
name = "cross_platform_compat_test"
path = "tests/cross_platform_compat_test.rs"
[[test]]
name = "disjunction_test"
path = "tests/disjunction_test.rs"
[[test]]
name = "edge_cases_test"
path = "tests/edge_cases_test.rs"
[[test]]
name = "error_handling_test"
path = "tests/error_handling_test.rs"
[[test]]
name = "index_test"
path = "tests/index_test.rs"
[[test]]
name = "negation_test"
path = "tests/negation_test.rs"
[[test]]
name = "not_join_test"
path = "tests/not_join_test.rs"
[[test]]
name = "performance_test"
path = "tests/performance_test.rs"
[[test]]
name = "predicate_expr_test"
path = "tests/predicate_expr_test.rs"
[[test]]
name = "prepared_statements_test"
path = "tests/prepared_statements_test.rs"
[[test]]
name = "production_patterns_test"
path = "tests/production_patterns_test.rs"
[[test]]
name = "recursive_rules_test"
path = "tests/recursive_rules_test.rs"
[[test]]
name = "retraction_test"
path = "tests/retraction_test.rs"
[[test]]
name = "temporal_metadata_test"
path = "tests/temporal_metadata_test.rs"
[[test]]
name = "udf_test"
path = "tests/udf_test.rs"
[[test]]
name = "wal_test"
path = "tests/wal_test.rs"
[[test]]
name = "window_functions_test"
path = "tests/window_functions_test.rs"
[[bench]]
name = "minigraf_bench"
path = "benches/minigraf_bench.rs"
harness = false
[dependencies.anyhow]
version = "1.0"
[dependencies.chrono]
version = "0.4"
features = [
"serde",
"std",
]
default-features = false
[dependencies.crc32fast]
version = "1.4"
[dependencies.postcard]
version = "1.0"
features = ["alloc"]
[dependencies.regex-lite]
version = "0.1.9"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.uuid]
version = "1.0"
features = [
"v4",
"v5",
"serde",
]
[dev-dependencies.serde_json]
version = "1.0"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.js-sys]
version = "0.3"
optional = true
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.uuid]
version = "1.0"
features = [
"v4",
"v5",
"serde",
"js",
]
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.wasm-bindgen]
version = "0.2"
optional = true
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.web-sys]
version = "0.3"
features = [
"DomStringList",
"Event",
"IdbDatabase",
"IdbFactory",
"IdbIndex",
"IdbObjectStore",
"IdbOpenDbRequest",
"IdbRequest",
"IdbTransaction",
"IdbTransactionMode",
"Window",
]
optional = true
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tempfile]
version = "3"
[profile.bench]
lto = true
codegen-units = 1
debug = 2
panic = "unwind"
strip = "none"
[profile.dist]
lto = "thin"
inherits = "release"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = "symbols"
[profile.release.package.minigraf-ffi]
strip = "none"