-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
99 lines (89 loc) · 3.36 KB
/
Copy pathCargo.toml
File metadata and controls
99 lines (89 loc) · 3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[package]
name = "qector_decoder_v3"
version = "1.0.0"
edition = "2021"
authors = ["Guillaume Lessard / iD01t Productions <admin@qector.store>"]
description = "Proprietary Rust QEC decoder core (Copyright (c) 2026 Guillaume Lessard. All Rights Reserved) with source-available Python suite, Union-Find, exact Blossom, Sparse Blossom, BP-OSD, and CPU/CUDA/OpenCL batch acceleration."
license-file = "LICENSE"
publish = true
homepage = "https://www.qector.store"
repository = "https://github.com/GuillaumeLessard/qector-decoder"
readme = "README.md"
keywords = ["quantum", "error-correction", "decoder", "mwpm", "qec"]
categories = ["science", "algorithms"]
[lib]
name = "qector_decoder_v3"
crate-type = ["cdylib"]
# Feature flags for optional infrastructure
[features]
default = ["opencl", "cuda"]
opencl = ["ocl"]
cuda = ["libloading"]
extension-module = ["pyo3/extension-module"]
prometheus = ["metrics-exporter-prometheus"]
grpc = ["tonic", "tonic-prost", "prost", "tokio", "prometheus", "sha2"]
full = ["opencl", "cuda", "grpc"]
# A9-05: build against the CPython stable ABI so one wheel per platform serves
# every supported interpreter (>=3.9, matching `requires-python`), instead of
# five near-identical wheels per platform. Release builds enable this; local
# `maturin develop` does not need it.
abi3 = ["pyo3/abi3-py39"]
[dependencies]
pyo3 = "0.29.0"
numpy = "0.29.0"
ndarray = { version = "0.17", features = ["rayon"] }
rayon = "1.12"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
fastrand = "2.4"
chrono = "0.4"
safetensors = "0.5"
memmap2 = "0.9"
thiserror = "2"
rand = "0.8"
nohash-hasher = "0.2"
smallvec = "1.15"
bumpalo = "3.16"
ed25519-dalek = "2.1"
base64 = "0.22"
# SHA-256 for the gRPC decoder-cache digest keys (C2-02). Already in the
# transitive tree via ed25519-dalek; pinned explicitly because grpc_server.rs
# now depends on it directly (grpc feature only).
sha2 = { version = "0.10", optional = true }
# Synchronous HTTP client used by stripe_billing::flush_to_stripe for the
# Stripe Billing Meter Events API (R4-01). Pure-Rust TLS via rustls.
ureq = { version = "2.10", features = ["json"] }
# opencl / cuda
ocl = { version = "0.19", optional = true }
libloading = { version = "0.8", optional = true }
# sparse MWPM (weight-optimal alternative to src/mwpm.rs for large graphs)
fusion-blossom = "0.2"
# Infrastructure gRPC + Prometheus + MCP
tonic = { version = "0.14", optional = true }
tonic-prost = { version = "0.14", optional = true }
prost = { version = "0.14", optional = true }
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
# Lightweight metrics facade is always-on (recording helpers compile everywhere,
# no-op until a recorder is installed); the heavy Prometheus HTTP exporter is
# gated behind the `prometheus` feature (pulled in by grpc/full). See dev.md 6.10.
metrics = { version = "0.24" }
metrics-exporter-prometheus = { version = "0.18", optional = true }
rand_distr = "0.4"
[build-dependencies]
tonic-prost-build = "0.14"
prost-build = "0.14"
# Vendored `protoc` so the `grpc`/`full` builds compile the gRPC proto with no
# system install. Only invoked by build.rs when the `grpc` feature is enabled.
protoc-bin-vendored = "3"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"
[profile.release.build-override]
opt-level = 3
[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1