`bevy/dynamic_linking` fails on `SCHEDULE_LABEL_INTERNER`
Maintainer thường phản hồi trong vòng 1 ngày
@sharmis-tp đang làm issue này rồi.
Từ ngày 26/10/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start by reading the rustd workspace loading and symbol lookup code involved in resolving writable statics from dylib dependencies; the issue does not name specific files or tests. Reproduce with the minimal Bevy app and the reduced dylib example, then compare behavior with and without crate-type = ["dylib"]. Done means rustd handles the exported static or clearly documents this limitation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Enabling bevy/dynamic_linking makes cargo rustd build fail on a minimal Bevy 0.19.1 app. Plain cargo builds and runs it.
Repro:
# Cargo.toml
[package]
name = "bevy-rustd-repro"
version = "0.1.0"
edition = "2024"
[dependencies]
bevy = { version = "0.19.1", default-features = false, features = ["default_app", "dynamic_linking"] }
// src/main.rs
use bevy::prelude::*;
struct Probe;
impl Plugin for Probe {
fn build(&self, app: &mut App) {
app.add_systems(Update, || {});
}
}
fn main() {
let mut app = App::new();
app.add_plugins((MinimalPlugins, Probe));
app.update();
}
Rust 1.99.0, rustd 0.0.0-4510078-18e09d1a1f901124, Linux x86-64.
cargo run exits 0. cargo rustd build exits 101:
error: the daemon could not load the workspace (exit status: 1: Error:
`...::Probe as ...Plugin>::build` is not compiled by rustd: unsupported:
callee `add_systems`: ... callee `intern`: unsupported: writable static
`SCHEDULE_LABEL_INTERNER` without a rustc symbol)
SCHEDULE_LABEL_INTERNER is the interner behind ScheduleLabel::intern in bevy_ecs. The plugin's add_systems(Update, ...) reaches it through that method, and with bevy_dylib linked the static lives in the dylib.
I reduced it without Bevy. A dylib crate with a private static COUNTER: AtomicUsize and a generic function that increments it fails the same way when an app crate calls that function. Removing crate-type = ["dylib"] makes rustd pass. nm -D shows the static exported by the dylib, so the symbol lookup seems to be the gap, not dylib linking itself. I can post the two crate version if useful.
Is this expected to work? If not, it would help to document the limitation for dylib dependencies.
- Ngôn ngữ chính
- Rust
- Star
- 248
- Fork
- 13
- Merge trung bình
- 7 giờ 52 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DioxusLabs/rustd
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
DioxusLabs/rustd#15 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
DioxusLabs/rustd#28 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
DioxusLabs/rustd#27 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Workspace fails to load: rquickjs types give layout of …: HasErrorType, and rustd never falls backĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
DioxusLabs/rustd#26 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
DioxusLabs/rustd#25 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DioxusLabs/rustd
Issue tương tự
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
pbakaus/impeccable#1601 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
RDF/XML writer: a blank node in two lists is left out of the secondCó thể đã có người làm @mrnolte đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
phillord/horned-owl#368 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
mongodb/kingfisher#588 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bump Python to 3.14 or 3.15Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug rust
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày