sea-orm/build-tools/update-strum-macros.sh
Wyatt Herkamp 0adcd3b36c
Update Strum (#2088)
* Update Strum

* Change log update

* Fetch updates from upstream Strum

* build-tools/update-strum-macros.sh

* Revert "Fetch updates from upstream Strum"

This reverts commit 32cf8f7ac96f9b0431d2bde682b69ec44b4f5b2e.

* Update enum_iter.rs

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2024-02-06 18:33:20 +08:00

8 lines
447 B
Bash

rm -rf sea-orm-macros/src/strum/helpers
rm -rf sea-orm-macros/src/strum/enum_iter.rs
cp -r ../strum/strum_macros/src/helpers sea-orm-macros/src/strum/helpers
cp -r ../strum/strum_macros/src/macros/enum_iter.rs sea-orm-macros/src/strum/enum_iter.rs
sed -i 's/crate::helpers::{*/super::helpers::{/' sea-orm-macros/src/strum/enum_iter.rs
sed -i 's/parse_quote!(::strum)*/parse_quote!(sea_orm::strum)/' sea-orm-macros/src/strum/helpers/type_props.rs