[package]
edition = "2024"
rust-version = "1.85"
name = "oxirouter"
version = "0.1.0"
authors = ["COOLJAPAN OU (Team Kitasan)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Autonomous Semantic Federation Engine for the Edge - Learned source selection for SPARQL federated queries with context-awareness"
documentation = "https://docs.rs/oxirouter"
readme = "README.md"
keywords = [
"sparql",
"federation",
"semantic-web",
"edge-computing",
"ml",
]
categories = [
"science",
"wasm",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/oxirouter"
[features]
agent = []
alloc = []
cache = []
cli = [
"std",
"agent",
"sparql",
"void",
]
default = [
"std",
"alloc",
]
device = ["mielin-hal"]
dropout = ["ml"]
ecosystem = [
"geo",
"device",
"load",
"legal",
]
edge = []
full = [
"ml",
"rl",
"cache",
"ecosystem",
]
geo = [
"oxigdal-core",
"oxigdal-proj",
]
http = ["ureq"]
legal = ["legalis-core"]
load = ["celers-core"]
ml = ["dep:libm"]
no_std = []
observability = [
"dep:tracing",
"dep:metrics",
"std",
]
p2p = []
rl = [
"dep:rand",
"dep:libm",
]
sparql = []
std = [
"serde/std",
"thiserror",
]
void = []
wasm = [
"wasm-bindgen",
"js-sys",
"console_error_panic_hook",
]
[lib]
name = "oxirouter"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "oxirouter-cli"
path = "src/bin/oxirouter-cli.rs"
required-features = ["cli"]
[[example]]
name = "agent_actions"
path = "examples/agent_actions.rs"
required-features = [
"agent",
"sparql",
]
[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
[[example]]
name = "sparql_routing"
path = "examples/sparql_routing.rs"
required-features = ["sparql"]
[[example]]
name = "void_descriptor"
path = "examples/void_descriptor.rs"
required-features = ["void"]
[[test]]
name = "agent_test"
path = "tests/agent_test.rs"
[[test]]
name = "capability_scoring_test"
path = "tests/capability_scoring_test.rs"
[[test]]
name = "celers_load_sensor_test"
path = "tests/celers_load_sensor_test.rs"
[[test]]
name = "circuit_breaker_test"
path = "tests/circuit_breaker_test.rs"
[[test]]
name = "cli_smoke_test"
path = "tests/cli_smoke_test.rs"
[[test]]
name = "config_persistence_test"
path = "tests/config_persistence_test.rs"
[[test]]
name = "context_sensors_test"
path = "tests/context_sensors_test.rs"
[[test]]
name = "continuous_improvement_test"
path = "tests/continuous_improvement_test.rs"
[[test]]
name = "ensemble_test"
path = "tests/ensemble_test.rs"
[[test]]
name = "explain_test"
path = "tests/explain_test.rs"
[[test]]
name = "federated_planner_test"
path = "tests/federated_planner_test.rs"
[[test]]
name = "federated_query_test"
path = "tests/federated_query_test.rs"
[[test]]
name = "federated_test"
path = "tests/federated_test.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "legalis_policy_engine_test"
path = "tests/legalis_policy_engine_test.rs"
[[test]]
name = "naive_bayes_per_source_test"
path = "tests/naive_bayes_per_source_test.rs"
[[test]]
name = "observability_test"
path = "tests/observability_test.rs"
[[test]]
name = "online_training_test"
path = "tests/online_training_test.rs"
[[test]]
name = "oxigdal_geo_sensor_test"
path = "tests/oxigdal_geo_sensor_test.rs"
[[test]]
name = "p2p_routing_test"
path = "tests/p2p_routing_test.rs"
[[test]]
name = "parallel_exec_test"
path = "tests/parallel_exec_test.rs"
[[test]]
name = "property_path_routing_test"
path = "tests/property_path_routing_test.rs"
[[test]]
name = "proptest_parsers"
path = "tests/proptest_parsers.rs"
[[test]]
name = "rl_randomness_test"
path = "tests/rl_randomness_test.rs"
[[test]]
name = "router_stats_test"
path = "tests/router_stats_test.rs"
[[test]]
name = "routing_tests"
path = "tests/routing_tests.rs"
[[test]]
name = "scoring_consistency_test"
path = "tests/scoring_consistency_test.rs"
[[test]]
name = "sparql_ast_test"
path = "tests/sparql_ast_test.rs"
[[test]]
name = "sparql_test"
path = "tests/sparql_test.rs"
[[test]]
name = "state_persistence_test"
path = "tests/state_persistence_test.rs"
[[test]]
name = "streaming_response_test"
path = "tests/streaming_response_test.rs"
[[test]]
name = "structured_triple_test"
path = "tests/structured_triple_test.rs"
[[test]]
name = "void_test"
path = "tests/void_test.rs"
[[test]]
name = "wasm_context_provider_test"
path = "tests/wasm_context_provider_test.rs"
[[bench]]
name = "inference_bench"
path = "benches/inference_bench.rs"
harness = false
[dependencies.celers-core]
version = "0.2.0"
optional = true
[dependencies.hashbrown]
version = "0.17"
features = [
"serde",
"default-hasher",
]
default-features = false
[dependencies.legalis-core]
version = "0.1.5"
optional = true
[dependencies.libm]
version = "0.2"
optional = true
[dependencies.metrics]
version = "0.24"
optional = true
[dependencies.mielin-hal]
version = "0.1.0-rc.1"
optional = true
[dependencies.oxigdal-core]
version = "0.1.4"
optional = true
[dependencies.oxigdal-proj]
version = "0.1.4"
optional = true
[dependencies.rand]
version = "0.10"
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
features = [
"derive",
"alloc",
]
default-features = false
[dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false
[dependencies.smallvec]
version = "1.15"
features = ["serde"]
default-features = false
[dependencies.thiserror]
version = "2.0"
optional = true
[dependencies.tracing]
version = "0.1"
features = [
"attributes",
"std",
]
optional = true
default-features = false
[dependencies.ureq]
version = "3.3"
optional = true
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.metrics-util]
version = "0.20"
features = ["debugging"]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tokio]
version = "1.52"
features = [
"rt-multi-thread",
"macros",
]
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
derivable_impls = "allow"
doc_markdown = "allow"
explicit_iter_loop = "allow"
field_reassign_with_default = "allow"
float_cmp = "allow"
format_push_string = "allow"
if_not_else = "allow"
items_after_statements = "allow"
iter_over_hash_type = "allow"
manual_assert = "allow"
manual_let_else = "allow"
map_unwrap_or = "allow"
match_like_matches_macro = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
mixed_attributes_style = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
redundant_else = "allow"
return_self_not_must_use = "allow"
same_item_push = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
uninlined_format_args = "allow"
unnecessary_literal_bound = "allow"
unreadable_literal = "allow"
unused_self = "allow"
useless_format = "allow"
useless_vec = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -2
[lints.rust]
missing_docs = "warn"
unsafe_code = "warn"
[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
[profile.release-edge]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
incremental = false
inherits = "release"
strip = true
[profile.release-wasm]
opt-level = "z"
panic = "abort"
inherits = "release"