-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove try-from-macro crate #322
Conversation
* remove local crate * add derive_try_from_ref crate from crates.io
WalkthroughThe codebase underwent a refactoring where the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to path filters (3)
Cargo.toml
is excluded by:!**/*.toml
odra-macros/Cargo.toml
is excluded by:!**/*.toml
try-from-macro/Cargo.toml
is excluded by:!**/*.toml
Files selected for processing (10)
- odra-macros/src/ast/blueprint.rs (2 hunks)
- odra-macros/src/ast/deployer_item.rs (3 hunks)
- odra-macros/src/ast/exec_parts.rs (2 hunks)
- odra-macros/src/ast/external_contract_item.rs (2 hunks)
- odra-macros/src/ast/host_ref_item.rs (2 hunks)
- odra-macros/src/ast/module_impl_item.rs (1 hunks)
- odra-macros/src/ast/module_struct_item.rs (1 hunks)
- odra-macros/src/ast/odra_type_item.rs (2 hunks)
- odra-macros/src/ast/ref_item.rs (2 hunks)
- odra-macros/src/ast/test_parts.rs (2 hunks)
Additional comments: 27
odra-macros/src/ast/module_struct_item.rs (2)
- 6-6: The change from
derive_try_from
toderive_try_from_ref
aligns with the PR objectives to replace the local crate with a standardized community-supported crate.- 10-10: The addition of
#[err(syn::Error)]
toModuleStructItem
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.odra-macros/src/ast/module_impl_item.rs (3)
- 8-8: The change from
derive_try_from
toderive_try_from_ref
aligns with the PR objectives to replace the local crate with a standardized community-supported crate.- 12-12: The addition of
#[err(syn::Error)]
toModuleImplItem
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.- 14-14: The change from
#[expr(item.self_code())]
to#[expr(input.self_code())]
likely aligns with the requirements or conventions of the newly adoptedderive_try_from_ref
crate.odra-macros/src/ast/blueprint.rs (4)
- 1-1: The change from
derive_try_from
toderive_try_from_ref
aligns with the PR objectives to replace the local crate with a standardized community-supported crate.- 10-10: The addition of
#[err(syn::Error)]
toBlueprintItem
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.- 12-12: The change from
#[expr(utils::attr::odra_module(&item.module_str()?))]
to#[expr(utils::attr::odra_module(&input.module_str()?))]
likely aligns with the requirements or conventions of the newly adoptedderive_try_from_ref
crate.- 19-19: The addition of
#[err(syn::Error)]
toBlueprintModItem
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.odra-macros/src/ast/external_contract_item.rs (4)
- 6-6: The change from
derive_try_from
toderive_try_from_ref
aligns with the PR objectives to replace the local crate with a standardized community-supported crate.- 10-10: The addition of
#[err(syn::Error)]
toExternalContractImpl
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.- 12-12: The change from
#[expr(item.self_code())]
to#[expr(input.self_code())]
likely aligns with the requirements or conventions of the newly adoptedderive_try_from_ref
crate.- 21-21: The addition of
#[err(syn::Error)]
toTestPartsItem
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.odra-macros/src/ast/deployer_item.rs (3)
- 1-1: The change from
derive_try_from
toderive_try_from_ref
aligns with the PR objectives to replace the local crate with a standardized community-supported crate.- 55-55: The addition of
#[err(syn::Error)]
toContractInitFn
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.- 73-73: The addition of
#[err(syn::Error)]
toDeployerItem
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.odra-macros/src/ast/ref_item.rs (2)
- 4-4: The change from
derive_try_from
toderive_try_from_ref
aligns with the PR objectives to replace the local crate with a standardized community-supported crate.- 120-120: The addition of
#[err(syn::Error)]
toRefItem
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.odra-macros/src/ast/exec_parts.rs (3)
- 6-6: The change from
derive_try_from
toderive_try_from_ref
aligns with the PR objectives to replace the local crate with a standardized community-supported crate.- 168-168: The addition of
#[err(syn::Error)]
toExecPartsModuleItem
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.- 172-172: The change from
#[expr(item.exec_parts_mod_ident())]
to#[expr(input.exec_parts_mod_ident())]
likely aligns with the requirements or conventions of the newly adoptedderive_try_from_ref
crate.odra-macros/src/ast/odra_type_item.rs (2)
- 8-8: The change from
derive_try_from
toderive_try_from_ref
aligns with the PR objectives to replace the local crate with a standardized community-supported crate.- 32-32: The addition of
#[err(syn::Error)]
toOdraTypeItem
is consistent with the PR's aim to enhance error handling by integrating with thesyn
crate's error reporting.odra-macros/src/ast/test_parts.rs (2)
- 1-1: The import statement has been correctly updated to use
derive_try_from_ref::TryFromRef
instead ofderive_try_from::TryFromRef
.- 51-51: The addition of the
#[err(syn::Error)]
attribute to theTestPartsItem
struct is consistent with the PR objectives to enhance error handling.odra-macros/src/ast/host_ref_item.rs (2)
- 2-2: The import statement in
host_ref_item.rs
has been updated to usederive_try_from_ref::TryFromRef
, aligning with the changes intest_parts.rs
.- 218-218: The
#[err(syn::Error)]
attribute has been added to theHostRefItem
struct, which is in line with the PR's goal to improve error handling.
Summary by CodeRabbit