mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
reexport ast as public
This commit is contained in:
parent
d94847187a
commit
f6fdc50e75
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -175,7 +175,7 @@ checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed"
|
||||
|
||||
[[package]]
|
||||
name = "wasmer-interface-types-fl"
|
||||
version = "0.17.22"
|
||||
version = "0.17.24"
|
||||
dependencies = [
|
||||
"fluence-it-types",
|
||||
"it-to-bytes",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "wasmer-interface-types-fl"
|
||||
version = "0.17.22"
|
||||
version = "0.17.24"
|
||||
description = "WebAssembly Interface Types library for Wasmer"
|
||||
license = "MIT"
|
||||
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"]
|
||||
|
@ -53,9 +53,9 @@
|
||||
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
|
||||
#![doc(html_logo_url = "https://github.com/wasmerio.png")]
|
||||
|
||||
mod ast;
|
||||
pub mod ast;
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
pub mod macros;
|
||||
pub mod decoders;
|
||||
pub mod encoders;
|
||||
pub mod errors;
|
||||
@ -64,12 +64,15 @@ pub mod interpreter;
|
||||
mod serde;
|
||||
mod values;
|
||||
|
||||
// re-exports
|
||||
pub use fluence_it_types::ne_vec::NEVec;
|
||||
pub use fluence_it_types::IRecordFieldType;
|
||||
pub use fluence_it_types::IRecordType;
|
||||
pub use fluence_it_types::IType;
|
||||
pub use fluence_it_types::IValue;
|
||||
|
||||
pub use it_to_bytes::ToBytes;
|
||||
|
||||
#[cfg(feature = "serde")]
|
||||
pub use crate::serde::de::from_interface_values;
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
/// This macro creates a `Vec1` by checking at compile-time that its
|
||||
/// invariant holds.
|
||||
#[macro_export]
|
||||
macro_rules! vec1 {
|
||||
macro_rules! ne_vec {
|
||||
($item:expr; 0) => {
|
||||
compile_error!("Cannot create an empty `Vec1`, it violates its invariant.")
|
||||
};
|
||||
@ -14,13 +14,13 @@ macro_rules! vec1 {
|
||||
|
||||
($item:expr; $length:expr) => {
|
||||
{
|
||||
crate::vec1::NEVec::new(vec![$item; $length]).unwrap()
|
||||
fluence_it_types::ne_vec::NEVec::new(vec![$item; $length]).unwrap()
|
||||
}
|
||||
};
|
||||
|
||||
($($item:expr),+ $(,)?) => {
|
||||
{
|
||||
crate::vec1::NEVec::new(vec![$($item),*]).unwrap()
|
||||
fluence_it_types::ne_vec::NEVec::new(vec![$($item),*]).unwrap()
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user