Commit d0b5f50
committed
Merge 'Replace scalar function declaration in extension API with proc macro' from Preston Thorpe
Per @penberg's suggestion on Discord, the `declare_scalar_functions!`
declarative macro has been replaced with a procedural one, allowing for
a much nicer API.
```rust
#[export_scalar]
#[args(0)]
fn uuid4_blob(_args: &[Value]) -> Value {
let uuid = uuid::Uuid::new_v4();
let bytes = uuid.as_bytes();
Value::from_blob(bytes.to_vec())
}
```
Closes #687File tree
7 files changed
+317
-151
lines changed- extensions/uuid/src
- limbo_extension
- src
- macros
- src
7 files changed
+317
-151
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments