Feature flags
The umbrella crate's default feature set is empty. A feature is the only thing that pulls a layer in:
cargo add oxgraph --features csr,algo-stdFeature names map to layers:
| Feature | Use it for |
|---|---|
topology, graph, hyper | The capability traits for graphs and hypergraphs. |
csr, csc, hyper-bcsr | Borrowed layouts over slices. |
snapshot, snapshot-alloc | Reading snapshots, and building them (-alloc). |
algo, algo-alloc, algo-std | BFS and PageRank at the matching allocation tier. |
graph-build, hyper-build | Append/freeze builders that produce a layout, then a snapshot. |
property-arrow | Arrow-backed property layers. |
db, postgres | The embedded database and the Postgres engine. |
full | Everything. |
Allocation tiers
Several layers ship at no_std, alloc, and std tiers so you only pull in an
allocator (or std) when your target allows it. oxgraph-algo is the clearest
example: algo (no_std), algo-alloc, and algo-std.