-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(gmeta): gmeta crate removed completely #4347
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # Cargo.lock # examples/new-meta/build.rs # examples/new-meta/src/lib.rs # examples/new-meta/src/wasm.rs # examples/new-meta/state-v1/build.rs # examples/new-meta/state-v1/src/lib.rs # examples/new-meta/state-v2/build.rs # examples/new-meta/state-v2/src/lib.rs # examples/new-meta/state-v3/build.rs # examples/new-meta/state-v3/src/lib.rs # gcli/src/cmd/program.rs # gcli/src/meta/executor.rs # gcli/src/meta/mod.rs # gcli/src/meta/registry.rs # gcli/src/meta/tests.rs # gcli/tests/cmd/program.rs # gmeta/codegen/src/lib.rs # gmeta/src/lib.rs # gsdk/Cargo.toml # gsdk/src/rpc.rs # utils/cargo-gbuild/src/artifact.rs # utils/wasm-builder/README.md # utils/wasm-builder/src/wasm_project.rs # utils/wasm-optimizer/src/optimize.rs # utils/wasm-proc/src/main.rs
@@ -278,7 +278,6 @@ doc: | |||
@ RUSTDOCFLAGS="--enable-index-page --generate-link-to-definition -Zunstable-options -D warnings" cargo doc --no-deps \ | |||
-p galloc -p gclient -p gcore -p gear-core-backend \ | |||
-p gear-core -p gear-core-processor -p gear-lazy-pages -p gear-core-errors \ | |||
-p gmeta -p gtest -p gear-wasm-builder -p gear-common \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why were other removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops misclick.... thank you
examples/fungible-token/src/lib.rs
Outdated
@@ -18,6 +18,8 @@ | |||
|
|||
#![cfg_attr(not(feature = "std"), no_std)] | |||
|
|||
pub use ft_io::*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in that case you can deprecate io crate at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe in the next pr I should redo the example so that I don't inflate the size of this pr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved types to lib.rs
whoami.workspace = true | ||
reqwest = { workspace = true, default-features = false, features = [ "json", "rustls-tls" ] } | ||
reqwest = { workspace = true, default-features = false, features = ["json", "rustls-tls"] } | ||
etc.workspace = true | ||
runtime-primitives.workspace = true | ||
url = { workspace = true, features = ["serde"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wasmer dep seems unused now; if yes, remove it and all related
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right
assert_ok!(Gear::read_state_impl(program_id, Default::default(), None)); | ||
assert_ok!(Gear::read_state_using_wasm_impl( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cfg test apis (Pallet impl) could be removed as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like it's all been deleted
}} | ||
|
||
#[unsafe(no_mangle)] | ||
extern "C" fn metahash() {{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are all metahash entries removed as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, everything is removed except the api and runtime methods
@@ -506,22 +390,14 @@ extern "C" fn metahash() {{ | |||
// Tuple with PathBuf last wasm & opt.wasm | |||
let mut wasm_paths: Option<(PathBuf, PathBuf)> = None; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need in this tuple now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not? the function still returns tuple with paths to the original wasm and optimized ones
gmeta crate removed, cleaned up other crates from gmeta