-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor!: Unsplit and removal of *-internal crates #185
Conversation
# ❯ erd --pattern '.*\.rs' --suppress-size -y inverted
borsh-derive
└─ src
├─ internals.rs
├─ lib.rs
└─ internals
├─ generics.rs
├─ serialize
│ ├─ union
│ │ └─ mod.rs
│ ├─ struct
│ │ └─ mod.rs
│ ├─ mod.rs
│ └─ enum
│ └─ mod.rs
├─ schema
│ ├─ struct
│ │ └─ mod.rs
│ ├─ mod.rs # borsh-schema-derive-internal/src/schema_helpers.rs content => src/internals/schema/mod.rs,
│ └─ enum
│ └─ mod.rs
├─ enum_discriminant_map.rs
├─ deserialize
│ ├─ union
│ │ └─ mod.rs
│ ├─ struct
│ │ └─ mod.rs
│ ├─ mod.rs
│ └─ enum
│ └─ mod.rs
├─ attributes
│ ├─ mod.rs
│ ├─ field
│ │ ├─ schema.rs
│ │ ├─ schema
│ │ │ └─ with_funcs.rs
│ │ ├─ mod.rs
│ │ └─ bounds.rs
│ └─ parsing.rs
└─ test_helpers.rs The same outline is also present in this repo |
borsh-derive
└──src
├──internals
│ ├──attributes
│ │ ├──field
│ │ │ └──mod.rs
│ │ │ └──#[cfg(test)]
│ │ └──mod.rs
│ │ └──#[cfg(test)]
│ ├──deserialize
│ │ ├──enum
│ │ │ └──mod.rs
│ │ │ └──#[cfg(test)]
│ │ └──struct
│ │ └──mod.rs
│ │ └──#[cfg(test)]
│ ├──schema
│ │ ├──enum
│ │ │ └──mod.rs
│ │ │ └──#[cfg(test)]
│ │ └──struct
│ │ └──mod.rs
│ │ └──#[cfg(test)]
│ └──serialize
│ ├──enum
│ │ └──mod.rs
│ │ └──#[cfg(test)]
│ └──struct
│ └──mod.rs
│ └──#[cfg(test)]
└──internals.rs
└──#[cfg(test)] # these aren't tests, it's `pub mod test_helpers;`
|
the following are some commands to simplify bookkeeping to make sure that probably all of tests/snapshots have been
|
I changed structure, so you need to use different commands: cargo nextest list --features schema 2>/dev/null| grep attributes | wc -l
cargo nextest list --features schema 2>/dev/null| grep deserialize::enums | wc -l
cargo nextest list --features schema 2>/dev/null| grep internals::serialize::enums | wc -l
cargo nextest list --features schema 2>/dev/null| grep deserialize::structs | wc -l
cargo nextest list --features schema 2>/dev/null| grep internals::serialize::structs | wc -l
echo #####
cargo nextest list --features schema 2>/dev/null| grep internals::schema::structs | wc -l
cargo nextest list --features schema 2>/dev/null| grep internals::schema::enums | wc -l
echo #####
ls src/internals/attributes/item/snapshots | wc -l
ls src/internals/attributes/field/snapshots | wc -l
ls src/internals/deserialize/enums/snapshots | wc -l
ls src/internals/serialize/enums/snapshots | wc -l
ls src/internals/deserialize/structs/snapshots | wc -l
ls src/internals/serialize/structs/snapshots | wc -l
echo #####
ls src/internals/schema/enums/snapshots | wc -l
ls src/internals/schema/structs/snapshots | wc -l
|
…ive/src/internals/attributes/field/mod.rs
…ture = "schema")]`
Added commit to simplify potential funeral of |
b432f65
to
2fe3cfe
Compare
…::field::schema::ParameterOverride) with ParameterOverride
this is fraction of #51