Krasimir Georgiev

Results 9 issues of Krasimir Georgiev

This PR adds support for using cc_common.link to link rust_binary-es and rust_test-s, following https://github.com/bazelbuild/rules_rust/issues/1488: * a new boolean build setting `--//rules_rust/rust/settings:experimental_use_cc_common_link`, defaulting to false, * a new rust_toolchain label attribute...

With @scentini we were thinking this could be an improvement. This will be useful to be able to distinguish between the returned providers in client code.

We would like to add support to rules_rust for linking rust binaries via the [cc_common.link](https://docs.bazel.build/versions/main/skylark/lib/cc_common.html) Bazel mechanism. This feature would allow for better cross-language interoperability and make it easier to...

enhancement

WIP attempt to add a unit test for experimental_use_whole_archive_for_native_deps

Related to https://github.com/bazelbuild/rules_rust/issues/637. As part of the stabilization of [the native-link-modifiers RFC](https://rust-lang.github.io/rfcs/2951-native-link-modifiers.html), rust-lang commit https://github.com/rust-lang/rust/commit/1004783ef9bdcf006f0ed33badacf83a5934feb2 changes the way rustc lowers `-l` flags to the linker invocation: an invocation like `rustc...

@buchgr noticed on https://github.com/bazelbuild/rules_rust/pull/2451#issuecomment-1941114502 that the current behavior to cap-lints when combined with user-defined --deny flags might be unexpected for users, as those will be down-graded to warnings: >However, I'd...

Used canned texts from the alternative links and the `Copyright 2019 Lymia Aluysia` attribution stamp based on the author from the Cargo.toml and the year this repo was published. Fixes...

The link [LICENSE-APACHE](https://github.com/Lymia/derive_setters/blob/master/LICENSE-APACHE) and [LICENSE-MIT](https://github.com/Lymia/derive_setters/blob/master/LICENSE-MIT) from https://github.com/Lymia/derive_setters#license are pointing to missing files.

No functional changes intended. These `set_len` calls were unsound: `set_len` requires that the elements old_len..new_len were initialized: * https://doc.rust-lang.org/std/vec/struct.Vec.html#method.set_len