Commit graph

21 commits

Author SHA1 Message Date
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
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
1bbf4c2be5
feat: Drop Debug requirements and flip implementation defaults (#756) 2025-03-15 15:14:34 +00:00
Micha Reiser
e1884ba2f1
Track revisions for tracked fields only 2025-02-23 18:21:34 +01:00
Ibraheem Ahmed
c710526c3c only create ingredients for tracked fields 2025-02-03 20:40:12 -05:00
Ibraheem Ahmed
c90c2f2e8a make tracked structs coarse-grained by default 2025-02-03 20:29:48 -05:00
David Barsky
bd81aa4766 feature: add id paramater to interned structs 2025-01-27 13:26:07 -05:00
David Barsky
fbc78e531b feature: add optional lifetimes to interned structs 2025-01-27 13:23:18 -05:00
Lukas Wirth
56b7a23f18 Improve the span used for salsa struct constructors 2024-10-25 12:59:55 +02:00
puuuuh
1e18334672
Add way to intern structs from references 2024-10-10 03:43:40 +03:00
Andrey Nikolaev
bd2c0036dc
fix error message to correctly reference #[default] instead of #[id] 2024-09-26 15:57:31 -07:00
Micha Reiser
17a2f6b2ca
Add support for [#default] and setting field-level durability 2024-08-06 08:47:57 +02: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
b7e6bc62af make methods work 2024-07-18 06:03:34 -04:00
Niko Matsakis
7443277381 wip 2024-07-17 06:41:56 -04:00
Niko Matsakis
b552852f29 wip 2024-07-17 06:08:34 -04:00
Niko Matsakis
fdc363b65f wip 2024-07-15 07:46:23 -04:00
Niko Matsakis
e1920bdda6 require databases and ingredients to be static 2024-07-06 08:15:27 -04:00
Matthijs Brobbel
c7851112a5
Rename salsa-2022 to salsa 2024-06-18 09:40:21 +02:00
Renamed from components/salsa-2022-macros/src/salsa_struct.rs (Browse further)