Skip to content

Commit

Permalink
feat: defining dictionary interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanti committed Aug 12, 2024
1 parent 7de469d commit a1b7226
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
members = ["derive", ".", "examples/*"]

[workspace.package]
version = "0.1.6"
version = "0.1.7"
edition = "2021"
license = "Apache-2.0"
description = "FastEdge Rust SDK that helps you to create edge cloud application using WASM"
Expand Down
6 changes: 6 additions & 0 deletions wit/dictionary.wit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
interface dictionary {
/// Get the value associated with the specified `key`
///
/// Returns `ok(none)` if the key does not exist.
get: func(name: string) -> option<string>;
}
2 changes: 2 additions & 0 deletions wit/world.wit
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ world http-reactor {
import http;
import http-client;

import dictionary;

export http-handler;
}

0 comments on commit a1b7226

Please sign in to comment.