#Add .rlib as dependency

33 messages · Page 1 of 1 (latest)

iron widget
#

How can I add an .rlib file as dependency?

#

Add .rlib as dependency

warm lion
#

Uh, why are you trying to add a .rlib as a dependency?

#

-xy

strange templeBOT
#

Hi! We’d like to help you with your current problem, but we have to know more about its surrounding context. What is the goal that you are trying to accomplish, as a whole? Not only can more information help fixing the problem better, sometimes it turns out that the best solution to accomplish your goal is something else entirely. This is known as an X-Y-problem. See: https://xyproblem.info/

iron widget
warm lion
#
[dependencies]
my_package = { path = "../my_package" }
cedar heath
#

if you have an rlib and want to use it in a rustc invocation, use --extern $cratename=$rlibpath

#

but is there a specific reason why you cant use cargo?

#

or some other build system, for that matter

iron widget
iron widget
mint perch
#

isn't that just the default behavior of cargo

#

I mean at least if you use a shared target directory

cedar heath
#

use sccache

iron widget
cedar heath
#

yeah you should use sccache for that

#

anad not do things manually

iron widget
mint perch
iron widget
#

Is there a guide für sccache?

warm lion
iron widget
warm lion
iron widget
warm lion
mint perch
iron widget
mint perch
iron widget
dusty violet
#

you could just copy and paste the sccache folder

#

well, it will be large, but that's another problem