Skip to content

lang: export accounts module, re-export its types in the prelude#1208

Merged
armaniferrante merged 18 commits into
otter-sec:masterfrom
paul-schaaf:lang__fix_accounts_re-exports
Jan 6, 2022
Merged

lang: export accounts module, re-export its types in the prelude#1208
armaniferrante merged 18 commits into
otter-sec:masterfrom
paul-schaaf:lang__fix_accounts_re-exports

Conversation

@paul-schaaf

@paul-schaaf paul-schaaf commented Dec 29, 2021

Copy link
Copy Markdown
Contributor

changes:

  • export accounts module. Make prelude re-export structs from accounts module instead of redefining them. From now on, account types are no longer available under the root but have to be imported from the prelude or the accounts module
  • remove deprecated accounts from prelude (I thought this made sense so new users dont use it but it's not required for this PR)

partially fixes #1206

@paul-schaaf paul-schaaf marked this pull request as ready for review January 2, 2022 19:13
Comment thread lang/src/accounts/mod.rs Outdated
Comment thread lang/src/lib.rs Outdated
@armaniferrante armaniferrante merged commit a830644 into otter-sec:master Jan 6, 2022
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lang, docs: anchor does not export data structures idiomatically

2 participants