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

Load Rust rules from @rules_rust//rust:defs.bzl. #398

Closed
PiotrSikora opened this issue Mar 16, 2021 · 1 comment
Closed

Load Rust rules from @rules_rust//rust:defs.bzl. #398

PiotrSikora opened this issue Mar 16, 2021 · 1 comment

Comments

@PiotrSikora
Copy link
Contributor

Following bazelbuild/rules_rust#592, this is now the preferred way to load public rules.

Unfortunately, it's not a simple replacement. The "old" rust_library from @rules_rust//rust:rust.bzl was split into multiple targets in @rules_rust//rust:defs.bzl (rust_library for lib, rlib, dylib, rust_shared_library for cdylib, rust_static_library for staticlib, and rust_proc_macro for proc-macro), and rust_library has been repurposed, so we need to generate different targets for different crate types.

cc @UebelAndre

@PiotrSikora
Copy link
Contributor Author

This was fixed in #452.

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