Registry / other / marine-macro

marine-macro

JSON →
library0.14.0rscratesunverified

Definition of the `#[marine]` macro for the Marine Rust SDK.

# Cargo.toml [dependencies] marine-macro = "0.14.0"
INSTALL
IMPORT
SIG · MARINE-MACRO
M
marine-macro
otherrustv0.14.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

marine
use marine_macro::marine;

Use the #[marine] macro to export a function

use marine_macro::marine; #[marine] pub fn hello() -> String { "Hello from Marine!".to_string() } fn main() { println!("{} ", hello()); }
Debug
Known issues
gotchaRequires the Marine runtime environment to execute.
fix
Ensure you are building for the Marine target (WASM).
affects: >=0.14.0
Upgrade
Version history
0.14.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
marine-macro — cargo add marine-macro · libregistry