Skip to content

Commit

Permalink
Update rust.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Oct 30, 2024
1 parent b1aa29f commit 014ac0b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#### 💥 Breaking

- Each tool's primary executable file name is no longer based on the plugin's identifier, and is now based on what's configured in the new `LocateExecutablesOutput.exes` setting.
- We've reworked how the `~/.proto/bin` directory works. Instead of only symlinking globally pinned versions, we now create a symlink for every tool executable, and every major + minor version installed within that tool. For example, when we install `node`, we may have the following:
- We've reworked how the `~/.proto/bin` directory works. Instead of only symlinking globally pinned versions (from `~/.proto/.prototools`), we now create a symlink for every tool executable, and every major + minor version installed within that tool. For example, when we install `node`, we may have the following:
- `~/.proto/bin/node` - Points to the highest installed version.
- `~/.proto/bin/node-<major>` - Points to the highest version within that major range (`~major`). Is created for each separate major version, for example: `node-20`, `node-22`.
- `~/.proto/bin/node-<major>.<minor>` - Points to the highest version within that major + minor range (`~major.minor`). Is created for each separate major + minor version, for example: `node-20.1`, `node-22.4`.
Expand All @@ -33,6 +33,10 @@
- Added `LocateExecutablesOutput.exes`.
- Added `ToolMetadataOutput.minimum_proto_version`.

#### ⚙️ Internal

- Updated Rust to v1.82.

## 0.41.7

#### 🐞 Fixes
Expand Down
5 changes: 4 additions & 1 deletion crates/warpgate-pdk/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ macro_rules! plugin_err {
#[macro_export]
macro_rules! exec_command {
(input, $input:expr) => {
unsafe { exec_command(Json($input))?.0 }
{
#[allow(clippy::macro_metavars_in_unsafe)]
unsafe { exec_command(Json($input))?.0 }
}
};

// Raw result
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
profile = "default"
channel = "1.81.0"
channel = "1.82.0"

0 comments on commit 014ac0b

Please sign in to comment.