Skip to content

Commit d0b5f50

Browse files
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 #687
2 parents ca2333d + 343ccb3 commit d0b5f50

File tree

7 files changed

+317
-151
lines changed

7 files changed

+317
-151
lines changed

Cargo.lock

Lines changed: 26 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)