Age | Commit message (Collapse) | Author |
|
Test: make
Change-Id: I7e3da584b9e0a1d254f5c04fd2625cf63b6eefbb
|
|
Test: make
Change-Id: Ib97682b9fd7603558c81062af1a6d37631d53029
|
|
Test: make
Change-Id: I981e614512ce2cb9bafa23c2cffd4850da4d4ee0
|
|
Bug: 168685525
Test: atest --host --include-subdirs external/rust/crates
Change-Id: Ic8b3466a1f8e42b5372e2d5aa5e81fe89473df83
|
|
Test: make
Change-Id: I7c29146ea175331215d087a634527d3a43b8293b
|
|
Test: make
Change-Id: I7054d14398b116d605871bf671483b2a0f828abf
|
|
Also adds local changes to patches/std.diff so that they will be applied automatically next time.
Change-Id: I772bdc5c7eeb57464725f6bf9ba93baedf37a3e3
|
|
* Regenerate .bp file with latest cargo2android.py.
* Keep local change to src/lib.rs:
"Use std to allow building as a dylib."
Test: atest -c --include-subdirs external/rust/crates
Change-Id: I2ee95cffd534115e7810027d51b86dc3df26e82b
|
|
Bug: b/158290206
Test: mm -j40
Change-Id: Iaad65cc21e5640cfbd31d40991b44ba1a6fa6de4
|
|
Test: None
Change-Id: I60885266408be753c815ff4748463bf8bff64400
|
|
Test: None
Change-Id: Ie7a43f9668b2fe781dd552bcf674d125e7ba1857
|
|
Test: None
Change-Id: I63e7e4993a38a138ad87445be23edcef8e05488b
|
|
* fill back missing NOTICE,METADATA,*LICENSE* files
Bug: 150877376
Test: make
Change-Id: I5735b22f9aade4f02ecc7b00c89ba090f7f0d786
|
|
Bug: 146571186
Test: m crosvm.experimental; atest unicode-xid_device_tests_unicode_xid
Change-Id: I83d2df69e8daa8192a62023a760cb8e9068bde01
|
|
* Auto generated Android.bp from cargo2android.py.
* Release package is different from the current base,
which was from a development master.
* .cargo_vcs_info.json has the snapshot commit sha.
* Cleaned up Cargo.toml, with original version saved.
* Source files not used to build the release package are removed.
Test: build all rust modules
Change-Id: I2290bf6936f5a9bd4fbb87509708e22c8bf5585f
|
|
|
|
|
|
|
|
Related to #657 .
|
|
|
|
|
|
This adds more WASI support, and in particular adds support for WASI
being a target_os rather than a target_env, which relates to this PR:
https://github.com/rust-lang/rust/pull/60117
|
|
|
|
|
|
|
|
|
|
This PR fixes the build on all platforms and all Rust version down to the
minimum Rust version supported by libc: Rust 1.13.0.
The `build.rs` is extended with logic to detect the newer Rust features used by
`libc` since Rust 1.13.0:
* Rust 1.19.0: `untagged_unions`. APIs using untagged unions are gated on
`cfg(libc_unions)` and not available on older Rust versions.
* Rust 1.25.0: `repr(align)`. Because `repr(align)` cannot be parsed by older
Rust versions, all uses of `repr(align)` are split into `align.rs` and
`no_align.rs` modules, which are gated on the `cfg(libc_align)` at the top
level. These modules sometimes contain macros that are expanded at the top
level to avoid privacy issues (`pub(crate)` is not available in older Rust
versions). Closes #1242 .
* Rust : `const` `mem::size_of`. These uses are worked around with hardcoded
constants on older Rust versions.
Also, `repr(packed)` structs cannot automatically `derive()` some traits like
`Debug`. These have been moved into `s_no_extra_traits!` and the lint of missing
`Debug` implementations on public items is silenced for these. We can manually
implement the `extra_traits` for these in a follow up PR. This is tracked
in #1243. Also, `extra_traits` does not enable `align` manually anymore.
Since `f64::to_bits` is not available in older Rust versions, its usage
has been replaced with a `transmute` to an `u64` which is what that method
does under the hood.
Closes #1232 .
|
|
|
|
|
|
|
|
|
|
|
|
Closes #651 .
|
|
This commit prepares the `libc` crate to be included directly into the
standard library via crates.io. More details about this can be found on
rust-lang/rust#56092, but the main idea is that this crate now depends
on core/compiler-builtins explicitly (but off-by-default).
The main caveat here is that this activates `no_core` when building as
part of libstd, which means that it needs to explicitly have an `iter`
and `option` module for the expansion of `for` loops to work.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sorry, accidentally forgot this when submitting #934..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|