mirror of
https://github.com/fluencelabs/wasm-module-name
synced 2025-03-14 19:20:49 +00:00
switch to parity-wasm main repo
This commit is contained in:
parent
803b30b8e0
commit
dc5f44e83a
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -109,8 +109,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "parity-wasm"
|
||||
version = "0.37.0"
|
||||
source = "git+https://github.com/fluencelabs/parity-wasm#d79ea200d9b27a4354f031629b4cb83afe70751d"
|
||||
version = "0.38.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
@ -212,7 +212,7 @@ dependencies = [
|
||||
"clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"exitfailure 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"parity-wasm 0.37.0 (git+https://github.com/fluencelabs/parity-wasm)",
|
||||
"parity-wasm 0.38.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -248,7 +248,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
"checksum failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "795bd83d3abeb9220f257e597aa0080a508b27533824adf336529648f6abf7e2"
|
||||
"checksum failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ea1063915fd7ef4309e222a5a07cf9c319fb9c7836b1f89b85458672dbb127e1"
|
||||
"checksum libc 0.2.50 (registry+https://github.com/rust-lang/crates.io-index)" = "aab692d7759f5cd8c859e169db98ae5b52c924add2af5fbbca11d12fefb567c1"
|
||||
"checksum parity-wasm 0.37.0 (git+https://github.com/fluencelabs/parity-wasm)" = "<none>"
|
||||
"checksum parity-wasm 0.38.0 (registry+https://github.com/rust-lang/crates.io-index)" = "20d7e522a7f994cc4ae32970b1ce0d99ecf91b8e1df080517a26faa6d2e2ee62"
|
||||
"checksum proc-macro2 0.4.27 (registry+https://github.com/rust-lang/crates.io-index)" = "4d317f9caece796be1980837fd5cb3dfec5613ebdb04ad0956deea83ce168915"
|
||||
"checksum quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)" = "cdd8e04bd9c52e0342b406469d494fcb033be4bdbe5c606016defbb1681411e1"
|
||||
"checksum redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)" = "423e376fffca3dfa06c9e9790a9ccd282fafb3cc6e6397d01dbf64f9bacc6b85"
|
||||
|
@ -15,7 +15,7 @@ panic = 'abort'
|
||||
name = "wasm-module-name"
|
||||
|
||||
[dependencies]
|
||||
parity-wasm = { git = "https://github.com/fluencelabs/parity-wasm" }
|
||||
parity-wasm = "0.38.0"
|
||||
clap = "2.32.0"
|
||||
exitfailure = "0.5.1"
|
||||
failure = "0.1.5"
|
||||
|
@ -81,7 +81,7 @@ fn main() -> Result<(), ExitFailure> {
|
||||
|
||||
let module_name = match name_section {
|
||||
Some(name_section) => {
|
||||
match name_section.module_name_subsection() {
|
||||
match name_section.module() {
|
||||
Some(name_section) => name_section.name(),
|
||||
None => no_module_name,
|
||||
}
|
||||
@ -103,8 +103,8 @@ fn main() -> Result<(), ExitFailure> {
|
||||
|
||||
let new_module_name_subsection = ModuleNameSubsection::new(new_module_name);
|
||||
match name_section {
|
||||
Some(mut name_section) =>
|
||||
*name_section.module_name_subsection_mut() = Some(new_module_name_subsection),
|
||||
Some(name_section) =>
|
||||
*name_section.module_mut() = Some(new_module_name_subsection),
|
||||
None => {
|
||||
let name_section = NameSection::new(Some(new_module_name_subsection), None, None);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user