mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 23:30:18 +00:00
fix imports
This commit is contained in:
parent
164d40fa81
commit
7f45bfadba
@ -80,7 +80,7 @@ pub fn marine(_attr: TokenStream, input: TokenStream) -> TokenStream {
|
||||
// deprecated macro for backwards compatibility
|
||||
#[deprecated(since = "0.6.2", note = "please use the #[marine] macro instead")]
|
||||
#[proc_macro_attribute]
|
||||
pub fn marine(_attr: TokenStream, input: TokenStream) -> TokenStream {
|
||||
pub fn fce(_attr: TokenStream, input: TokenStream) -> TokenStream {
|
||||
// into converts proc_macro::TokenStream to proc_macro2::TokenStream
|
||||
match marine_impl(input.into()) {
|
||||
Ok(v) => v,
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
use marine_it_parser::WITParserError;
|
||||
use marine_it_parser::ITParserError;
|
||||
use fluence_app_service::AppServiceError;
|
||||
|
||||
use darling::Error as DarlingError;
|
||||
@ -26,7 +26,7 @@ use std::path::PathBuf;
|
||||
#[derive(Debug, ThisError)]
|
||||
pub enum TestGeneratorError {
|
||||
#[error("Can't load Wasm modules into Marine: {0}")]
|
||||
WITParserError(#[from] WITParserError),
|
||||
ITParserError(#[from] ITParserError),
|
||||
|
||||
#[error("{0}")]
|
||||
CorruptedITSection(#[from] CorruptedITSection),
|
||||
|
@ -18,18 +18,18 @@ use crate::TResult;
|
||||
|
||||
use fluence_app_service::TomlAppServiceConfig;
|
||||
use marine_it_parser::module_raw_interface;
|
||||
use marine_it_parser::interface::FCEModuleInterface;
|
||||
use marine_it_parser::interface::MModuleInterface;
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub(super) struct Module<'m> {
|
||||
pub name: &'m str,
|
||||
pub interface: FCEModuleInterface,
|
||||
pub interface: MModuleInterface,
|
||||
}
|
||||
|
||||
impl<'m> Module<'m> {
|
||||
fn new(name: &'m str, interface: FCEModuleInterface) -> Self {
|
||||
fn new(name: &'m str, interface: MModuleInterface) -> Self {
|
||||
Self { name, interface }
|
||||
}
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ mod mounted_binary;
|
||||
extern crate self as fluence;
|
||||
|
||||
pub use marine_macro::marine;
|
||||
pub use marine_macro::marine;
|
||||
pub use marine_macro::fce;
|
||||
|
||||
pub use call_parameters::CallParameters;
|
||||
pub use call_parameters::SecurityTetraplet;
|
||||
|
Loading…
Reference in New Issue
Block a user