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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[]
= "gresil"
= true
= true
= true
= true
= true
= true
= true
= true
= "Spiking neural networks in no_std Rust, i16 fixed point, for microcontrollers"
= "README.md"
# The closed bridge chapter's four `ternary_*` examples stay in the
# repository, where the workspace build checks them, and out of the
# package: they are that chapter's evidence programs, and each needs an
# unstable feature, `unstable-stdp` or `unstable-bridge`. Their
# `[[example]]` entries stay; `cargo package` warns once for each.
= ["examples/ternary_*"]
[]
= "gresil"
[]
= ["std"]
= []
# The AVX2 batch LIF kernel on x86_64, the scalar reference on any other
# target. Implies `std` because runtime feature detection
# (`is_x86_feature_detected!`) is std-only.
# A future `no_std` variant could select backends at compile time via
# `#[cfg(target_feature)]` for embedded RISC-V.
= ["std"]
# STDP, outside the semver promise: `STDPRule`, `Synapse::update_weight`,
# `SpikingNeuralNetwork::set_plasticity_enabled`,
# `SpikingNeuralNetwork::stochastic_ternary_step`,
# `trit::stochastic_ternary_flip`, `trit::STOCHASTIC_FLIP_RATE`, and
# STDP's instruments: `Synapse`'s two bounds and two counters and
# `NetworkStats`' four counters.
# Anything behind it may change or go in a minor release. Off by
# default: a default build does not learn.
= []
# The ternary bridge's closed chapter, outside the semver promise: the
# `bridge` codecs (Stage 2) and the `kernel` matvec (Stage 3). Anything
# behind it may change or go in a minor release. Off by default; works
# with and without `std`.
= []
# The freezer, `fixed::freeze`, outside the semver promise: a network
# written as the Rust source of the arrays a `FixedNetwork` steps.
# Anything behind it may change or go in a minor release. Off by
# default; `std` only, so without `std` it builds nothing.
= []
# docs.rs builds the default features alone; the gated items' docs exist
# only with the features on.
[]
= ["simd", "unstable-stdp", "unstable-bridge", "unstable-freeze"]
[]
# None. The spike history is a [u32; N] ring, SpikeRecorder in
# spike_recorder.rs (alpha.8; a field of the neuron in lif_neuron.rs
# from 2026-09-10, alpha.6); heapless, the one runtime dependency
# before that, is now the differential oracle below. Audit surface: core.
# Cargo builds the dev-dependencies for an example, and proptest needs
# an OS (heapless does not): under this table a target with none, the
# C3's `riscv32imc-unknown-none-elf`, builds the examples without them,
# so CI checks `board` and `learner` there (AGENTS.md § Commands).
[]
# Property-based tests — Cardano-grade rigor (leçon v0.1: tout test doit être réel)
= "1.5"
# The pre-ring spike history, kept as the oracle of the differential
# test in spike_recorder.rs (prop_ring_matches_the_heapless_oracle).
= "0.8"
# An example that needs `std` lists it, so a build without the default
# features skips it (`--examples`) or names the feature it lacks
# (`--example`) instead of failing on its first import. `board`,
# `learner` and `ternary_format_gate` need no `std`; `bench_simd`'s
# `simd` turns it on.
[[]]
= "bench_simd"
= ["simd"]
# The examples that learn, or that write the plasticity-on trace
# (`trace` writes the frozen file too, so it needs the freezer):
# `-p gresil` skips them in silence, as it does `bench_simd`; the
# workspace build turns the features on (rt and the app ask for STDP,
# nir2json for the freezer) and covers them.
[[]]
= "demo"
= ["std", "unstable-stdp"]
[[]]
= "ternary_gate"
= ["std", "unstable-stdp"]
[[]]
= "ternary_selectivity"
= ["std", "unstable-stdp"]
[[]]
= "ternary_hybrid_gate"
= ["std", "unstable-stdp", "unstable-bridge"]
# The closed chapter's Stage 2 gate, behind `unstable-bridge` with the
# codecs; rt asks for the feature, so the workspace build covers it.
[[]]
= "ternary_format_gate"
= ["unstable-bridge"]
[[]]
= "trace"
= ["std", "unstable-stdp", "unstable-freeze"]
# The two NIR gates: the import, the export and the graph assembly.
[[]]
= "nir_assembly_gate"
= ["std"]
[[]]
= "nir_format_gate"
= ["std"]
# The starter set, code a stranger copies (each header says what it
# shows). Each runs its test under `cargo test` (`test = true`). `board`
# and `learner` are `no_std` libraries, since a board's firmware owns the
# entry point; CI checks them for the C3's target too. `-p gresil`
# skips `freeze` and `learner` in silence, as it does `bench_simd`; the
# workspace build turns their features on and covers them.
[[]]
= "stranger"
= true
= ["std"]
[[]]
= "freeze"
= true
= ["std", "unstable-freeze"]
[[]]
= "board"
= ["lib"]
= true
[[]]
= "learner"
= ["lib"]
= true
= ["unstable-stdp"]