Commit Graph

18 Commits

Author SHA1 Message Date
coolsnowwolf
741eb4376c rust: update to 1.80.1 2024-10-19 18:22:59 +08:00
coolsnowwolf
1ec98c1488 rust: update to 1.78.0 2024-05-23 20:25:13 +08:00
coolsnowwolf
e87ab2874e rust: update to 1.74.1 2024-02-27 00:46:33 +08:00
coolsnowwolf
86aec7166f rust: fix build for mips 24kc 2024-02-22 15:07:20 +08:00
coolsnowwolf
e7280b2a94 rust: Update to 1.75.0 2024-01-16 23:03:46 +08:00
lean
d4ad9b75be rust: bump to v1.72.0 2023-09-17 05:46:23 +08:00
Oskari Rauta
35d4c6a128 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 15:01:25 +00:00
Tianling Shen
c6fead5f68 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-30 06:48:27 +00:00
Tianling Shen
6397d2be33 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-30 06:48:18 +00:00
Tianling Shen
e54fed036c 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-30 06:47:10 +00:00
Tianling Shen
a279daed53 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-30 06:47:02 +00:00
Tianling Shen
28c3998f9a 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-30 06:46:53 +00:00
Tianling Shen
4b2ab07596 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-30 06:46:45 +00:00
Luca Barbato
41d65ade58 rust-lang: update to 1.68.0
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2023-03-30 06:45:39 +00:00
Luca Barbato
0c03c27554 rust-lang: Add an Host/Compile helper as well
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2023-03-11 16:17:33 +00:00
Luca Barbato
104826fbe1 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-11 16:17:17 +00:00
Luca Barbato
fbdcd4d908 maturin: Add package
Build tool for rust-python packages.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2023-03-11 16:16:49 +00:00
Luca Barbato
20d0492c3e 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-11 16:16:31 +00:00