napi-rs/examples/napi/src/shared.rs
LongYinan 3d48d4464b
fix(cli,napi-derive): re-export types from shared crate (#1531)
* fix(cli,napi-derive): re-export types from shared crate

* chore: publish

 - @napi-rs/cli@2.15.1-alpha.0

* Clippy fix

* Fix memory testing
2023-03-21 18:12:52 +08:00

7 lines
128 B
Rust

use napi_derive::napi;
use napi_shared::Shared;
#[napi]
pub fn return_from_shared_crate() -> Shared {
Shared { value: 42 }
}