rust_library build rule doesn't build anything
See original GitHub issueI have the following BUCK file:
rust_library(
name = 'Rustic',
srcs = ['./lib.rs'],
)
And I have that one file, lib.rs, in the same directory (Buck will complain if I don’t). However, it doesn’t seem to actually build this file, because when I put garbage data into lib.rs, the buck build step says it succeeded. I also can’t find an output library anywhere.
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Build-std and the standard library - libs - Rust Internals
The set of crates to build is something that the end-user shouldn't be configuring, but rather it's inherent to each crate itself (more...
Read more >`make` doesn't notice modifications in a Rust module
The pragmatic solution is to just use Cargo, the Rust build tool and package manager. Let it deal with dependencies (both local modules...
Read more >Creating our first crate - intermezzOS
Now, we've got everything tucked away nicely. But this has broken our build terribly: $ make make: *** No rule to make target...
Read more >Functions - Bazel
This function declares metadata that applies to every subsequent rule in the package. It is used at most once within a package (BUILD...
Read more >Makefile Tutorial By Example
Other languages like Go and Rust have their own build tools. ... The goal of Makefiles is to compile whatever files need to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You need to specify “timer” as a dependency in
deps = []
.As I mentioned https://github.com/jsgf/rust-buck-skeleton/issues/1#issuecomment-414776556, the way we do this is to pre-build third-party deps and commit the .rlib files, then build with buck against those.