Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions shopify_function/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pub use shopify_function_macro::{shopify_function, typegen, Deserialize};
pub mod scalars;

pub mod prelude {
#[allow(deprecated)]
pub use crate::eprintln;
pub use crate::log;
pub use crate::scalars::*;
pub use shopify_function_macro::{shopify_function, typegen, Deserialize};
Expand Down Expand Up @@ -61,6 +63,12 @@ macro_rules! log {
};
}

#[macro_export]
#[deprecated(note = "Use log! instead")]
macro_rules! eprintln {
($($tt:tt)*) => { std::eprintln!($($tt)*) }
}

pub use shopify_function_wasm_api as wasm_api;

#[cfg(test)]
Expand Down