Skip to content

Commit

Permalink
fix(hermes): Exclude Cargo.lock by default, only include it specifica…
Browse files Browse the repository at this point in the history
…lly where required.
  • Loading branch information
stevenj committed May 9, 2024
1 parent 0033ae6 commit c9ccc7f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,10 @@ $RECYCLE.BIN/
# Dart stuff
/pubspec.lock
/.dart_tool/**/*

# Rust stuff

# By default ignore Cargo.lock
# Specifically exclude it in the directory it appears, if its required.
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
4 changes: 0 additions & 4 deletions hermes/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ target/
# This file is only used for local development/debugging
bindings.rs

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

Expand Down
2 changes: 1 addition & 1 deletion wasm/integration-test/cardano/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build:
DO rust-ci+SETUP

COPY --dir src .
COPY Cargo.toml Cargo.lock .
COPY Cargo.toml .
COPY wasi+build-rust-bindings/hermes.rs src/hermes.rs

DO rust-ci+CARGO --args "build --target wasm32-unknown-unknown --release" \
Expand Down
6 changes: 1 addition & 5 deletions wasm/wasi-hermes-component-adapter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
*.pdb

0 comments on commit c9ccc7f

Please sign in to comment.