Skip to content

Commit

Permalink
Merge pull request #28 from G-Core/fix/secret_doc
Browse files Browse the repository at this point in the history
Fix/secret doc
  • Loading branch information
ruslanti authored Oct 21, 2024
2 parents e978106 + 19f3121 commit 92feb17
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions 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.7"
version = "0.1.8"
edition = "2021"
license = "Apache-2.0"
description = "FastEdge Rust SDK that helps you to create edge cloud application using WASM"
Expand All @@ -29,7 +29,7 @@ default = []
json = ["serde_json"]

[dependencies]
fastedge-derive = { path = "derive", version = "0.1.7" }
fastedge-derive = { path = "derive", version = "0.1.8" }
http = "1.1.0"
bytes = "^1.5"
wit-bindgen = "0.30.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/secret/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ crate-type = ["cdylib"]

[dependencies]
fastedge = { path = "../../" }
anyhow = "1.0"
anyhow = "1.0"
11 changes: 8 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ pub use http_client::send_request;
#[doc(hidden)]
pub use crate::exports::gcore::fastedge::http_handler;
use crate::gcore::fastedge::http::{Error as HttpError, Method, Request, Response};
#[doc(hidden)]
pub use crate::gcore::fastedge::secret;



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


/// Helper functions for dictionary interface
pub mod dictionary {
#[doc(inline)]
pub use crate::gcore::fastedge::dictionary::get;
}

/// Helper functions for secret interface
pub mod secret {
#[doc(inline)]
pub use crate::gcore::fastedge::secret::get;
}

/// Error type returned by [`send_request`]
#[derive(thiserror::Error, Debug)]
pub enum Error {
Expand Down

0 comments on commit 92feb17

Please sign in to comment.