15 Commits

Author SHA1 Message Date
Michael Davis
10f0feb5b8 Develop using latest stable Rust
The latest Clippy has a lint that checks that calls follow MSRV. It's
not perfect - it misses some cases like trait items, `Arc::default()`
for example. Spellbook is not changed often enough that it should be a
pain point however.

Also Spellbook is not meant to increase MSRV without good reason (unlike
an application like Helix) so eventually it will run further behind on
Rust versions than rust-analyzer supports. The MSRV CI will catch actual
violations not caught by Clippy before a release.
2025-02-04 13:25:07 -05:00
Michael Davis
4995a50184 Document use of unsafe 2025-01-27 18:56:37 -05:00
Michael Davis
c033d2e22a compare doc: Copy edits 2024-12-02 19:20:44 -05:00
Michael Davis
0c5b568051 compare doc: Copy edits 2024-11-13 09:16:49 -05:00
Michael Davis
ca13e830a8 Add initial notes about performance comparison 2024-11-12 23:56:55 -05:00
Michael Davis
2af9bc0733 internals: Mention "German string" optimizations 2024-11-03 11:59:00 -05:00
Michael Davis
7b126ac164 Use cargo bench for slice-contains benchmark
brunch's output is nice but it has trouble with really really small
benchmarks. Once you get down below 22ns brunch can't tell the
difference anymore. `cargo bench` (available on nightly) though is very
fine-grained. To start with let's move over the `slice-contains` which
was hitting the 22ns threshold. We can see that actually only very few
cases even get above 10ns when measured precisely.
2024-10-30 18:53:39 -04:00
Michael Davis
fa64133444 Update Hashbrown to 0.15, use HashTable instead of raw API 2024-10-07 14:17:40 -04:00
Michael Davis
68dd921daf internals: usize is 8 bytes on a 64 bit machine 2024-10-03 21:54:13 -04:00
Michael Davis
196e20e59b internals: fix typo 2024-09-09 07:24:18 -04:00
Michael Davis
36f205b3ca Add a type alias for word stems 2024-09-08 09:56:45 -04:00
Michael Davis
c3559f0ece internals: Clarify boxed slice "mutability"
Boxed slices are mutable - the elements within can be changed - it's
that they can't be resized like a Vec/String.
2024-09-08 09:56:45 -04:00
Michael Davis
10cf846157 Expand docs and copy edit 2024-09-07 11:06:03 -04:00
Michael Davis
95618cc49f Add a contributing guide 2024-09-06 18:10:55 -04:00
Michael Davis
de6491adf9 Move "internals" documentation out to docs/ directory 2024-09-06 18:06:08 -04:00