mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
e049a50395
This reverts the relevant bits from #21746 so that style and dependencies can build with stable. This is important because: * `selectors` is a published crate. * Gecko compiles with stable (more or less). I reviewed that PR under the assumption that the union feature was stable, since untagged unions are stable since 1.19, but turns out that smallvec uses non-Copy types in unions, which are still unstable. This leaves the union feature used on Servo, so that it gets testing, taking advantage of features being additive. This cherry-picks servo/servo#21788.
26 lines
605 B
TOML
26 lines
605 B
TOML
[package]
|
|
name = "fallible"
|
|
version = "0.0.1"
|
|
authors = ["The Servo Project Developers"]
|
|
license = "MPL-2.0"
|
|
publish = false
|
|
|
|
[lib]
|
|
name = "fallible"
|
|
path = "lib.rs"
|
|
|
|
[dependencies]
|
|
smallvec = "0.6"
|
|
hashglobe = { path = "../hashglobe" }
|
|
|
|
# This crate effectively does nothing except if the `known_system_malloc`
|
|
# feature is specified.
|
|
#
|
|
# In that case, we actually call the system malloc functions to reserve space,
|
|
# otherwise we just let rust do its thing (aborting on OOM).
|
|
#
|
|
# This is effectively a stop-gap measure until we can do this properly in
|
|
# stable rust.
|
|
[features]
|
|
known_system_malloc = []
|