CheaterCodes
13a2bd7461
Changed return_ref
syntax to returns(as_ref)
and returns(cloned)
( #772 )
...
* Changed `return_ref` syntax to `returns(as_ref)` and `returns(cloned)`
* Implement
* renamed module for return_mode
* Rename macro, fix docs, add tests, validate return modes
* Cargo fmt
---------
Co-authored-by: Micha Reiser <micha@reiser.io>
2025-05-09 07:28:54 +00:00
Lukas Wirth
cfa88e9a4d
Move salsa event system into Zalsa
( #849 )
...
* Move salsa event system into `Zalsa`
* Encode `None` into ShallowUpdate
This shrinks the return value from 16 to 8 bytes
2025-05-07 11:45:49 +00:00
Micha Reiser
f7eea9d69b
Use DatabaseKey
for interned events ( #813 )
...
* Use `DatabaseKey` for interned events
* Tame clippy
2025-04-24 10:38:46 +00:00
Lukas Wirth
a89e3d2357
chore: Normalize imports style ( #779 )
...
* Default impl some ingredient functions
* chore: Normalize imports style
Effectively reformatted everything with
```toml
imports_granularity = "Module"
group_imports = "StdExternalCrate"
reorder_imports = true
```
2025-03-28 05:11:40 +00:00
Lukas Wirth
8f63476f96
Replace crossbeam
dependency with crossbeam-queue
2025-02-11 11:51:51 +01:00
David Barsky
5f0904ae4a
introduce parallel salsa
2024-11-25 11:29:24 -05:00
David Barsky
0557605cb8
internal: add some initial input benchmarks
2024-08-13 10:38:38 -04:00
Niko Matsakis
4d2ccffddc
return to the database-wrapping-storage setup
2024-08-04 02:18:54 -04:00
Niko Matsakis
daaa78056a
switch to new database design
...
Under this design, *all* databases are a
`DatabaseImpl<U>`, where the `U` implements
`UserData` (you can use `()` if there is none).
Code would default to `&dyn salsa::Database` but
if you want to give access to the userdata, you
can define a custom database trait
`MyDatabase: salsa::Databse` so long as you
* annotate `MyDatabase` trait definition of
impls of `MyDatabase` with `#[salsa::db]`
* implement `MyDatabase` for `DatabaseImpl<U>`
where `U` is your userdata (this could be a
blanket impl, if you don't know the precise
userdata type).
The `tests/common/mod.rs` shows the pattern.
2024-07-28 12:47:50 +00:00
Niko Matsakis
64556e9d28
make event generation lazy
...
Creating events if nobody is listening has
always bugged me.
2024-07-28 12:35:33 +00:00
Niko Matsakis
c50cefa71e
upgrade all the things
2024-07-28 10:38:30 +00:00
Niko Matsakis
e847929536
pacify the merciless clippy
2024-07-19 09:20:41 -04:00
Niko Matsakis
3304acc5dd
wip: accum, privacy for inputs
2024-07-19 07:08:24 -04:00
Niko Matsakis
612cec6703
wip
2024-07-15 20:29:36 -04:00
Niko Matsakis
4769e32d44
wip
2024-07-15 07:51:40 -04:00
Matthijs Brobbel
5ba40cf36c
Fix CI and examples
2024-06-18 09:52:37 +02:00
Matthijs Brobbel
c7851112a5
Rename salsa-2022
to salsa
2024-06-18 09:40:21 +02:00