Skip to content

Commit 160ea76

Browse files
committed
feat: export dictionary crate
1 parent 01be464 commit 160ea76

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/lib.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub extern crate http;
88
pub use fastedge_derive::http;
99
pub use http_client::send_request;
1010

11+
#[doc(hidden)]
1112
pub use crate::exports::gcore::fastedge::http_handler;
1213
use crate::gcore::fastedge::http::{Error as HttpError, Method, Request, Response};
1314

@@ -25,9 +26,15 @@ pub mod wasi_nn {
2526
wit_bindgen::generate!({
2627
world: "http-reactor",
2728
path: "wit",
28-
pub_export_macro: true
29+
pub_export_macro: true,
2930
});
3031

32+
33+
pub mod dictionary {
34+
#[doc(inline)]
35+
pub use crate::gcore::fastedge::dictionary::get;
36+
}
37+
3138
/// Error type returned by [`send_request`]
3239
#[derive(thiserror::Error, Debug)]
3340
pub enum Error {

0 commit comments

Comments
 (0)