Skip to content

Commit c986bba

Browse files
committed
feat!: upgrade to official rules_rust 0.65.0
BREAKING CHANGE: Remove git_override dependency and upgrade to official rules_rust 0.65.0 This major milestone transitions from custom patches to official upstream support for WebAssembly Component Model development. Changes: - Upgrade rules_rust from 0.62.0 + git_override to official 0.65.0 - Remove git_override dependency that blocked BCR publication - Update rules_cc to 0.2.4 (eliminates version warnings) - Update installation documentation for official rules_rust integration - Mark BCR publication as ready (issue #7 resolved) - Prepare CHANGELOG for 2.0.0 release Migration required: Users must update MODULE.bazel to remove git_override and use: bazel_dep(name = "rules_rust", version = "0.65.0") Benefits: - Official WASI Preview 2 support included by default - BCR publication now unblocked - Enhanced stability with official upstream support - Simplified installation without custom patches Resolves: #7
1 parent 485a18c commit c986bba

File tree

5 files changed

+69
-35
lines changed

5 files changed

+69
-35
lines changed

.bcr/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
This directory contains template files for publishing `rules_wasm_component` to the Bazel Central Registry.
44

5-
## Status: 🚧 Blocked
5+
## Status: ✅ Ready for Publication
66

7-
**Current Issue**: Publication is blocked due to `git_override` dependency in `MODULE.bazel`.
8-
See [Issue #7](https://github.com/pulseengine/rules_wasm_component/issues/7) for details.
7+
**Previous Issue Resolved**: The `git_override` dependency has been removed from `MODULE.bazel` - now using official rules_rust 0.65.0.
8+
See [Issue #7](https://github.com/pulseengine/rules_wasm_component/issues/7) for historical context.
99

1010
## Files
1111

@@ -27,8 +27,8 @@ Once the dependency issue is resolved:
2727

2828
## Prerequisites for BCR Publication
2929

30-
- [ ] Remove `git_override` for `rules_rust` from `MODULE.bazel`
31-
- [ ] Use only official registry dependencies
30+
- [x] Remove `git_override` for `rules_rust` from `MODULE.bazel`
31+
- [x] Use only official registry dependencies
3232
- [ ] Set up `BCR_PUBLISH_TOKEN` secret in repository settings
3333
- [ ] Create fork of `bazel-central-registry` in the `pulseengine` organization
3434

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,54 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [Unreleased]
6+
7+
## [2.0.0] - TBD
8+
9+
### 🎉 Major Milestone: Official rules_rust Integration
10+
11+
This release represents a significant achievement - transitioning from custom patches to official upstream support for WebAssembly Component Model development.
12+
13+
### ⚠️ BREAKING CHANGES
14+
15+
- **rules_rust dependency**: Upgrade from git_override to official rules_rust 0.65.0
16+
- **Migration required**: Remove git_override and update to `bazel_dep(name = "rules_rust", version = "0.65.0")`
17+
- **Benefit**: No more custom patches, official WASI Preview 2 support included
18+
19+
### ✨ Features
20+
21+
- **Official WASI Preview 2 Support**: Now included in rules_rust 0.65.0 by default
22+
- **BCR Publication Ready**: Unblocked Bazel Central Registry publication
23+
- **Enhanced Stability**: Official upstream support vs custom forks
24+
- **Simplified Installation**: Clean, straightforward dependency management
25+
26+
### 🔧 Improvements
27+
28+
- Update rules_cc to 0.2.4 (eliminates version warnings)
29+
- Comprehensive documentation updates for official rules_rust integration
30+
- BCR publication workflow ready for deployment
31+
32+
### 📦 Migration Guide
33+
34+
**Before (1.x.x)**:
35+
```starlark
36+
bazel_dep(name = "rules_rust", version = "0.62.0")
37+
git_override(
38+
module_name = "rules_rust",
39+
commit = "7d7d3ac...",
40+
remote = "https://github.com/bazelbuild/rules_rust.git",
41+
)
42+
```
43+
44+
**After (2.0.0)**:
45+
```starlark
46+
bazel_dep(name = "rules_rust", version = "0.65.0")
47+
```
48+
49+
### 🎯 Impact
50+
51+
This release marks the success of contributing WASI Preview 2 support upstream to rules_rust, enabling the entire Bazel ecosystem to benefit from enhanced WebAssembly capabilities.
52+
553
## [0.1.0] - 2025-07-09
654

755
### Features

MODULE.bazel

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,11 @@ module(
77
)
88

99
# Dependencies for WebAssembly tooling
10-
bazel_dep(name = "rules_rust", version = "0.62.0")
11-
12-
# Git override to use upstream rules_rust with WASI Preview 2 support
13-
git_override(
14-
module_name = "rules_rust",
15-
commit = "7d7d3ac00ad013c94e7a9d0db0732c20ffe8eab7", # WASI Preview 2 support
16-
remote = "https://github.com/bazelbuild/rules_rust.git",
17-
)
10+
bazel_dep(name = "rules_rust", version = "0.65.0")
1811

1912
bazel_dep(name = "bazel_skylib", version = "1.8.1")
2013
bazel_dep(name = "platforms", version = "1.0.0")
21-
bazel_dep(name = "rules_cc", version = "0.2.0")
14+
bazel_dep(name = "rules_cc", version = "0.2.4")
2215
bazel_dep(name = "rules_go", version = "0.57.0")
2316

2417
# OCI image signing capabilities

MODULE.bazel.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-site/src/content/docs/installation.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,7 @@ wasm_toolchain.register(
128128
For Rust WebAssembly components, add rules_rust and configure dependencies:
129129

130130
```python title="MODULE.bazel"
131-
bazel_dep(name = "rules_rust", version = "0.62.0")
132-
133-
# Git override for WASI Preview 2 support
134-
git_override(
135-
module_name = "rules_rust",
136-
commit = "7d7d3ac00ad013c94e7a9d0db0732c20ffe8eab7",
137-
remote = "https://github.com/bazelbuild/rules_rust.git",
138-
)
131+
bazel_dep(name = "rules_rust", version = "0.65.0")
139132

140133
# Configure Rust crate dependencies
141134
crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate")

0 commit comments

Comments
 (0)