From: ng0 <ng0@libertad.pw>
To: guix-devel@gnu.org
Subject: rust: cargo build-system: how to handle libraries
Date: Tue, 27 Dec 2016 23:57:00 +0000 [thread overview]
Message-ID: <8760m5c4dv.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> (raw)
Hi,
I've got about 94 rust packages on my todo list for our
(secushare) current prototype version.
Today I assembled the full list of them and started with the
crate `libc`. This crate comes with no Cargo.toml file, where I
already am aware of the limitation of our cargo build-system.
Before I can start my task now, I have to enhance the cargo
build-system in guix. Now I'm very new to packaging for
rust. When a Cargo.toml is in place, you can find lots of
information very easily in search engines, but without it gets
very difficult.
Please correct me if this is wrong:
We run (or this is the default) cargo with `--bin`, which is
necessary for everything which needs to be compiled and features
a Cargo.toml.
To "build" libraries, we have to explicitly tell cargo to not
run/build/whatever with --bin ?
Or do I have to interprete what I read a while ago "we just need
to copy the libraries to the store" as literally "if we encounter
no Cargo.toml, let's copy everything to the store as is"?
CC'ing David, Eric, and Ludovic as you all were involved to some
degree in the discussion before about cargo and rust.
--
♥Ⓐ ng0
PGP keys and more: https://n0is.noblogs.org/ http://ng0.chaosnet.org
next reply other threads:[~2016-12-27 23:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-27 23:57 ng0 [this message]
2016-12-28 0:07 ` rust: cargo build-system: how to handle libraries David Craven
2016-12-28 9:24 ` ng0
2016-12-28 9:26 ` ng0
2016-12-28 9:59 ` David Craven
2016-12-28 16:42 ` ng0
2016-12-28 16:49 ` ng0
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760m5c4dv.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me \
--to=ng0@libertad.pw \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).