Skip to content

macOS 27: can't find crate for rquickjs_macro #712

Description

@clason

After updating to macOS 27 beta (including Xcode Command Line Tools 27 beta)1, rquickjs fails to build in release mode with the macro feature:

Steps to reproduce:

git clone https://github.com/DelSkayn/rquickjs.git
cd rquickjs
git submodule update --init
cargo b --release --features=macro

Output:

   Compiling rquickjs-macro v0.12.1 (/Users/clason/build/rquickjs/macro)
   Compiling rquickjs v0.12.1 (/Users/clason/build/rquickjs)
error[E0463]: can't find crate for `rquickjs_macro`
   --> src/lib.rs:129:9
    |
129 | pub use rquickjs_macro::{
    |         ^^^^^^^^^^^^^^ can't find crate

For more information about this error, try `rustc --explain E0463`.
error: could not compile `rquickjs` (lib) due to 1 previous error

Curiously, cargo b --features=macro works fine, as does cargo b --release. This is with rustc 1.97.1 but already happened with 1.96.x, too, so I don't think it's a Rust regression. Since it may be relevant: This is with homebrew installed rustup. Obviously I tried wiping .cargo, reinstalling everything, etc.


1I know that this is an unsupported platform and this is my own fault, but I'm opening this because

  1. I am completely baffled and hoping someone here will have some idea what's going on;
  2. other people may run into the same problem (especially if they use rquickjs as a dependency in their project, like we do in tree-sitter);
  3. the issue has persisted over multiple betas so is very likely to make it into the final release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic:upstreamRelated to the upstream C engine

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions