Rocket/core/lib
Sergio Benitez 333da45470 Allow non-breaking config additions.
If stars aligned properly, we might imagine writing this:

    #[non_exhaustive]
    struct Config {
        pub field: Foo,
        pub other: Bar,
    }

...with semantics that would allow the defining crate (here, Rocket), to
construct the structure directly while consumers would need to use
public constructors or struct update syntax:

    Config {
        field: Foo,
        other: Bar,
        ..Default::default()
    }

Alas, this is not the way `non_exhaustive` works on structs. You cannot
use field-update syntax to construct `Config` above. You must use public
constructors. This means builder methods or mutating an already built
struct. This is not what we want.

I don't know why it works this way. I don't see why it must. Something
something Drop.

So we have this hack from the pre-non_exhaustive era.
2021-06-07 19:31:23 -07:00
..
fuzz Fuzz URI parsing and display. 2021-06-06 21:52:44 -07:00
src Allow non-breaking config additions. 2021-06-07 19:31:23 -07:00
tests Discover sentinels in known type macros. 2021-06-03 19:31:30 -07:00
Cargo.toml Add initial Server-Sent Events implementation. 2021-06-01 13:19:58 -07:00
build.rs Update minimum rustc to 1.46. 2020-10-21 19:56:12 -07:00