Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Lazark0x
Copy link
Member

gmeta crate removed, cleaned up other crates from gmeta

@Lazark0x Lazark0x requested a review from breathx November 18, 2024 21:45
@Lazark0x Lazark0x self-assigned this Nov 18, 2024
@Lazark0x Lazark0x added the A1-inprogress Issue is in progress or PR draft is not ready to be reviewed label Nov 18, 2024
@Lazark0x Lazark0x added A0-pleasereview PR is ready to be reviewed by the team and removed A1-inprogress Issue is in progress or PR draft is not ready to be reviewed labels Nov 19, 2024
Base automatically changed from laz/remove-usage-of-read-state-with-wasm to master February 11, 2025 11:23
# 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 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why were other removed?

@@ -18,6 +18,8 @@

#![cfg_attr(not(feature = "std"), no_std)]

pub use ft_io::*;
Copy link
Member

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

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"] }
Copy link
Member

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

assert_ok!(Gear::read_state_impl(program_id, Default::default(), None));
assert_ok!(Gear::read_state_using_wasm_impl(
Copy link
Member

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

}}

#[unsafe(no_mangle)]
extern "C" fn metahash() {{
Copy link
Member

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?

@@ -506,22 +390,14 @@ extern "C" fn metahash() {{
// Tuple with PathBuf last wasm & opt.wasm
let mut wasm_paths: Option<(PathBuf, PathBuf)> = None;
Copy link
Member

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?

Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-pleasereview PR is ready to be reviewed by the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants