Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📋 Crate compatibility tracker #3

Open
5 tasks
fasterthanlime opened this issue Jul 18, 2024 · 0 comments
Open
5 tasks

📋 Crate compatibility tracker #3

fasterthanlime opened this issue Jul 18, 2024 · 0 comments

Comments

@fasterthanlime
Copy link
Contributor

fasterthanlime commented Jul 18, 2024

Here are temporary PRs:


For anyone playing around with rubicon, the easiest way to get your crate graph to use rubicon-compatible crates is to use crates.io patching, not in Cargo.toml, since you'd have to duplicate those in your app, mods, and exports crate, but in .cargo/config.toml, somewhere in your repository, something like:

Sample .cargo/config.toml

[target.'cfg(any())']
rustflags = [
    # generic flags
    "-Wunused-crate-dependencies",
    "-Cprefer-dynamic",
]

[target.'cfg(any(target_os = "macos"))']
rustflags = [
    # macOS-specific flags
    "-Wunused-crate-dependencies",
    "-Cprefer-dynamic",
    "-Clink-arg=-undefined",
    "-Clink-arg=dynamic_lookup",
]

[patch.crates-io]
tracing-subscriber = { git = "https://github.com/bearcove/tracing", branch = "v0.1.x-rubicon-3.x" }
tracing-core = { git = "https://github.com/bearcove/tracing", branch = "v0.1.x-rubicon-3.x" }
tracing-log = { git = "https://github.com/bearcove/tracing", branch = "v0.1.x-rubicon-3.x" }
tracing = { git = "https://github.com/bearcove/tracing", branch = "v0.1.x-rubicon-3.x" }

tokio = { git = "https://github.com/bearcove/tokio", branch = "rubicon-3.x-bis" }

parking_lot = { git = "https://github.com/bearcove/parking_lot", branch = "rubicon-3.x" }
parking_lot_core = { git = "https://github.com/bearcove/parking_lot", branch = "rubicon-3.x" }
lock_api = { git = "https://github.com/bearcove/parking_lot", branch = "rubicon-3.x" }

eyre = { git = "https://github.com/bearcove/eyre", branch = "release-0.6-rubicon-3.x" }
@fasterthanlime fasterthanlime pinned this issue Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant