Skip to content

Commit 92feb17

Browse files
authored
Merge pull request #28 from G-Core/fix/secret_doc
Fix/secret doc
2 parents e978106 + 19f3121 commit 92feb17

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
members = ["derive", ".", "examples/*"]
33

44
[workspace.package]
5-
version = "0.1.7"
5+
version = "0.1.8"
66
edition = "2021"
77
license = "Apache-2.0"
88
description = "FastEdge Rust SDK that helps you to create edge cloud application using WASM"
@@ -29,7 +29,7 @@ default = []
2929
json = ["serde_json"]
3030

3131
[dependencies]
32-
fastedge-derive = { path = "derive", version = "0.1.7" }
32+
fastedge-derive = { path = "derive", version = "0.1.8" }
3333
http = "1.1.0"
3434
bytes = "^1.5"
3535
wit-bindgen = "0.30.0"

examples/secret/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ crate-type = ["cdylib"]
99

1010
[dependencies]
1111
fastedge = { path = "../../" }
12-
anyhow = "1.0"
12+
anyhow = "1.0"

src/lib.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ pub use http_client::send_request;
1111
#[doc(hidden)]
1212
pub use crate::exports::gcore::fastedge::http_handler;
1313
use crate::gcore::fastedge::http::{Error as HttpError, Method, Request, Response};
14-
#[doc(hidden)]
15-
pub use crate::gcore::fastedge::secret;
14+
1615

1716

1817
/// Implementation of Outbound HTTP component
@@ -32,12 +31,18 @@ wit_bindgen::generate!({
3231
pub_export_macro: true,
3332
});
3433

35-
34+
/// Helper functions for dictionary interface
3635
pub mod dictionary {
3736
#[doc(inline)]
3837
pub use crate::gcore::fastedge::dictionary::get;
3938
}
4039

40+
/// Helper functions for secret interface
41+
pub mod secret {
42+
#[doc(inline)]
43+
pub use crate::gcore::fastedge::secret::get;
44+
}
45+
4146
/// Error type returned by [`send_request`]
4247
#[derive(thiserror::Error, Debug)]
4348
pub enum Error {

0 commit comments

Comments
 (0)