mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
After recent changes, we are able to store only the C/Rust source codes for Wasm programs, and only build them when neccessary. This patch utilizes this opportunity by removing most of the currently stored raw Wasm programs, replacing them with C/Rust sources and adding them to the new build system.
7 lines
99 B
Rust
7 lines
99 B
Rust
use scylla_udf::export_udf;
|
|
|
|
#[export_udf]
|
|
fn plus42(i1: i16, i2: i16) -> i16 {
|
|
i1 + i2 + 42
|
|
}
|