style: Move a bit declaration_block and cascade modules

So that they aren't imported via #[path]. This allows cargo to see them
even before building.

Differential Revision: https://phabricator.services.mozilla.com/D178105
This commit is contained in:
Emilio Cobos Álvarez 2023-05-15 20:57:59 +00:00 committed by Martin Robinson
parent 9c58f0c635
commit ae993e485a
5 changed files with 90 additions and 64 deletions

View file

@ -163,14 +163,7 @@ pub use style_traits::owned_str::OwnedStr;
use std::hash::{BuildHasher, Hash};
/// The CSS properties supported by the style system.
/// Generated from the properties.mako.rs template by build.rs
#[macro_use]
#[allow(unsafe_code)]
#[deny(missing_docs)]
pub mod properties {
include!(concat!(env!("OUT_DIR"), "/properties.rs"));
}
pub mod properties;
#[cfg(feature = "gecko")]
#[allow(unsafe_code)]
@ -181,12 +174,6 @@ pub mod gecko;
#[allow(unsafe_code)]
pub mod servo;
#[cfg(feature = "gecko")]
#[allow(unsafe_code, missing_docs)]
pub mod gecko_properties {
include!(concat!(env!("OUT_DIR"), "/gecko_properties.rs"));
}
macro_rules! reexport_computed_values {
( $( { $name: ident } )+ ) => {
/// Types for [computed values][computed].