You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am comparing what cargo and rules_rust generate in terms of the rustc command line.
I setup a 1:1 comparison where each one depends one very large dependency (datafusion).
The difference in command line is massive. For instance, it appears that every transitive dependency is added to the command line when using the Bazel rules. I was expecting them to be close but that our bazel rules would show significantly more input files due to the toolchain dependencies (which do not show up in the Cargo output).
pubfnadd(left:u64,right:u64) -> u64{
left + right
}#[cfg(test)]mod tests {usesuper::*;#[test]fnit_works(){let result = add(2,2);assert_eq!(result, 4);}}
pubfnadd(left:u64,right:u64) -> u64{
left + right
}#[cfg(test)]mod tests {usesuper::*;#[test]fnit_works(){let result = add(2,2);assert_eq!(result, 4);}}
I am comparing what cargo and rules_rust generate in terms of the rustc command line.
I setup a 1:1 comparison where each one depends one very large dependency (datafusion).
The difference in command line is massive. For instance, it appears that every transitive dependency is added to the command line when using the Bazel rules. I was expecting them to be close but that our bazel rules would show significantly more input files due to the toolchain dependencies (which do not show up in the Cargo output).
Library
Cargo
Cargo.toml
lib.rs
cargo build --verbose
to see the output:Bazel
BUILD.bazel
lib.rs
aquery
to get the output:rustc_lib_test.aquery.dbg.txt
Binary
Cargo
Cargo.toml
main.rs
cargo build --verbose
to see the output:Bazel
BUILD.bazel
rustc_test.rs
aquery
to get the output:rustc_bin_test.aquery.dbg.txt
The text was updated successfully, but these errors were encountered: