[Buildroot] [PATCH v10 09/10] docs/manual: document cargo-based packages
Peter Korsgaard
peter at korsgaard.com
Mon Feb 5 10:29:13 UTC 2018
>>>>> "Eric" == Eric Le Bihan <eric.le.bihan.dev at free.fr> writes:
> Add instructions for adding a package which uses Cargo as build system.
> Signed-off-by: Eric Le Bihan <eric.le.bihan.dev at free.fr>
> ---
> docs/manual/adding-packages-cargo.txt | 110 ++++++++++++++++++++++++++++++++++
> docs/manual/adding-packages.txt | 2 +
> 2 files changed, 112 insertions(+)
> create mode 100644 docs/manual/adding-packages-cargo.txt
> diff --git a/docs/manual/adding-packages-cargo.txt b/docs/manual/adding-packages-cargo.txt
> new file mode 100644
> index 0000000000..8de7c97cb9
> --- /dev/null
> +++ b/docs/manual/adding-packages-cargo.txt
> @@ -0,0 +1,110 @@
> +// -*- mode:doc; -*-
> +// vim: set syntax=asciidoc:
> +
> +=== Integration of Cargo-based packages
> +
> +Cargo is the package manager for the Rust programming language. It allows the
> +user to build programs or libraries written in Rust, but it also downloads and
> +manages their dependencies, to ensure repeatable builds. Cargo packages are
> +called "crates".
> +
> +[[cargo-package-tutorial]]
> +
> +==== Cargo-based package's +Config.in+ file
> +
> +The +Config.in+ file of Cargo-based package 'foo' should contain:
> +
> +---------------------------
> +01: config BR2_PACKAGE_FOO
> +02: bool "foo"
> +03: depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
> +04: select BR2_PACKAGE_HOST_CARGO
> +05: help
> +06: This is a comment that explains what foo is.
The indentation here is wrong. It should be <tab>help and
<tab><space><space>This is a comment..
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list