Commit bb67fd6
committed
refactor: rename phyllotactic-manifold -> fractal + fix pre-existing clippy/nostd
User-requested rename ("phyllotactic-manifold sounds way too weird").
Filesystem move + 6 reference site updates (root Cargo.toml dep,
p64 dep, internal manifest name, bench import, p64_bridge.rs uses,
COMPARISON.md). Workspace `members = ["crates/*"]` picks up the new
path automatically.
Also fixed pre-existing CI failures in this crate that were blocking
PR #115:
- clippy: replaced approx-constant literal `1.414_213_562_373_095_1`
with `core::f64::consts::SQRT_2`; converted needless `for i in 0..N`
index loops to `iter().enumerate()` + `iter_mut().enumerate()`;
replaced redundant slice copy loop with `copy_from_slice`;
removed unnecessary `as i8` self-cast; switched manual range checks
to `RangeInclusive::contains`; promoted const-only assertion into a
`const { assert!(..) }` block; collapsed redundant closures in
bench helpers.
- nostd: declared a `std` feature (default-on), added
`#![cfg_attr(not(feature = "std"), no_std)]` plus
`extern crate alloc` and `extern crate core as std` (mirroring
ndarray's pattern); imported `alloc::vec::Vec` in `dead_zone`;
added `libm` as a hard dep with thin `fsqrt` / `fpowi` polyfills
gated on the `std` feature so the manifold geometry compiles on
thumbv6m. Propagated the feature: ndarray's `std` feature now
enables `fractal/std`, and both `ndarray -> fractal` and
`p64 -> fractal` declare `default-features = false` so workspace
nostd builds reach a no_std fractal.
Note: the workspace nostd CI was already red on master due to
unrelated issues in `p64` and the `constant_time_eq` transitive dep
of blake3; those are out of scope for this PR. fractal itself now
builds clean on thumbv6m-none-eabi standalone.
No semantic changes to the crate's public API; consumer-facing
re-exports remain identical (`p64_bridge::manifold_consts`,
`fractal::seven_plus_one::nars_truth`).
https://claude.ai/code/session_01NYGrxVopyszZYgLBxe4hgj1 parent 8899961 commit bb67fd6
8 files changed
Lines changed: 167 additions & 164 deletions
File tree
- crates
- fractal
- benches
- src
- p64
- src/hpc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
Lines changed: 12 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 88 | + | |
93 | 89 | | |
94 | 90 | | |
95 | 91 | | |
| |||
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
110 | | - | |
| 106 | + | |
111 | 107 | | |
112 | 108 | | |
113 | 109 | | |
| |||
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
126 | | - | |
127 | | - | |
| 122 | + | |
| 123 | + | |
128 | 124 | | |
129 | 125 | | |
130 | 126 | | |
| |||
151 | 147 | | |
152 | 148 | | |
153 | 149 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 150 | + | |
162 | 151 | | |
0 commit comments