question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rust_library build rule doesn't build anything

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jsgfcommented, Jan 8, 2018

You need to specify “timer” as a dependency in deps = [].

0reactions
jsgfcommented, Aug 21, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found