Tianling Shen
7ace3bb7d6
rust: enable riscv64 support
...
rust natively supports riscv64 so let's enable it.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2023-06-07 19:17:08 +08:00
Tianling Shen
ba267237e7
rust: bump libc to 0.2.146
...
Fixes build with musl 1.2.4.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2023-06-07 15:06:34 +08:00
Luca Barbato
81add12294
rust: update to 1.70.0
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2023-06-05 15:12:23 +08:00
Luca Barbato
1f9baddd43
rust: update to 1.69.0
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2023-04-21 06:09:47 +08:00
Luca Barbato
0db6a13526
rust: update to 1.68.2
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2023-04-03 02:30:53 +08:00
Oskari Rauta
49782b3db4
rust: update to 1.68.1
...
also add new variable CARGO_VARS to make it possible
to pass environment variables for cargo process.
This is necessary when for example, cross-compiling
netavark.
Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com >
2023-03-31 03:35:41 +08:00
Tianling Shen
bb3082a1c5
rust: fix build with glibc
...
Don't set musl-specific options/ldflags when using glibc.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2023-03-24 02:08:47 +08:00
Tianling Shen
09d482c3b2
rust: enable use of prebuilt llvm toolchain
...
llvm-bpf is not ready for generic usage, so use prebuilt llvm toolchain
provided by the rust project to speedup build (~1hour faster).
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2023-03-24 02:08:47 +08:00
Tianling Shen
65ce42c401
maturin: adapt new rust build standard
...
While at it, move maturin out of rust directory.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2023-03-24 02:08:47 +08:00
Tianling Shen
e7016bb4bc
rust: refactor build helper
...
Added new RustBinPackage, RustBinHostBuild wrapper.
Added new RUST_PKG_FEATURES flag.
Moved CARGO_HOME to STAGING_DIR_HOSTPKG.
Overrode default Build/Compile and Host/Compile to Cargo build.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2023-03-24 02:08:47 +08:00
Tianling Shen
473bc722ea
rust: remove useless target dependencies and configuration
...
They are for the target build which is not supported yet, drop them.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2023-03-24 02:08:47 +08:00
Tianling Shen
513f751bcb
rust: remove useless tarball package
...
These tarball cannot be reused, so simply drop them.
Also move cargo config to a file instead of using echo command.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2023-03-24 02:08:47 +08:00
Luca Barbato
e784c54b76
rust-lang: update to 1.68.0
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2023-03-13 19:48:34 +08:00
Luca Barbato
2d3e0da711
rust-lang: Add an Host/Compile helper as well
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2023-03-10 14:24:16 +00:00
Luca Barbato and Tianling Shen
44d1d22a16
rust-lang: Apply suggestions from code review
...
Co-authored-by: Tianling Shen <cnsztl@gmail.com >
Signed-off-by: Luca Barbato <luca.barbato@gmail.com >
2023-03-10 14:24:16 +00:00
Luca Barbato
674bad0559
maturin: Add package
...
Build tool for rust-python packages.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2023-03-10 14:24:16 +00:00
Luca Barbato
83785a7ce0
rust-lang: Add the rust language support
...
Based on work from Donald Hoskins <grommish@gmail.com >.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2023-03-10 14:24:16 +00:00