style: Reduce diff with upstream derive_common and malloc_size_of (#31363)

This commit is contained in:
Delan Azabani 2024-02-16 18:24:35 +08:00 committed by GitHub
parent 1e503c3bc1
commit aeb2503fdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 47 additions and 6 deletions

View file

@ -3,7 +3,6 @@ name = "derive_common"
version = "0.0.1"
authors = ["The Servo Project Developers"]
license = "MPL-2.0"
edition = "2018"
publish = false
[lib]

View file

@ -4,11 +4,11 @@
use darling::{FromDeriveInput, FromField, FromVariant};
use proc_macro2::{Span, TokenStream};
use quote::{quote, TokenStreamExt};
use quote::TokenStreamExt;
use syn::{
self, parse_quote, AngleBracketedGenericArguments, AssocType, DeriveInput, Field,
GenericArgument, GenericParam, Ident, Path, PathArguments, PathSegment, QSelf, Type, TypeArray,
TypeGroup, TypeParam, TypeParen, TypePath, TypeSlice, TypeTuple, Variant, WherePredicate,
self, AngleBracketedGenericArguments, AssocType, DeriveInput, Field, GenericArgument,
GenericParam, Ident, Path, PathArguments, PathSegment, QSelf, Type, TypeArray, TypeGroup,
TypeParam, TypeParen, TypePath, TypeSlice, TypeTuple, Variant, WherePredicate,
};
use synstructure::{self, BindStyle, BindingInfo, VariantAst, VariantInfo};

View file

@ -2,4 +2,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
extern crate darling;
extern crate proc_macro2;
#[macro_use]
extern crate quote;
#[macro_use]
extern crate syn;
extern crate synstructure;
pub mod cg;