Skip to content
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

[PM-13660] implement catchable non generic error types #31

Merged
merged 54 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
4b7ebf3
feat: scaffold error crates
coroiu Nov 5, 2024
2706477
feat: add basic manual implementation
coroiu Nov 5, 2024
03dbeba
refactor: convert into metadata trait/struct
coroiu Nov 5, 2024
e45a994
feat: scaffold proc macro
coroiu Nov 5, 2024
97ff4ae
feat: implement derive macro
coroiu Nov 5, 2024
3393de9
feat: use attribute macro as alias for derive macro
coroiu Nov 5, 2024
9a9c59b
chore: clean up commented old code
coroiu Nov 5, 2024
51b23ff
refactor: move iteration into match_arms variable
coroiu Nov 5, 2024
d164501
feat: add support for complex enums
coroiu Nov 5, 2024
3f00e38
feat: add support for struct
coroiu Nov 5, 2024
d868324
feat: add error handling for unions
coroiu Nov 5, 2024
d6ee79d
feat: add support for getting all variants
coroiu Nov 5, 2024
8e91caf
feat: add support for throwing bitwarden error in wasm
coroiu Nov 6, 2024
eaf33e0
chore: add proc-macro2 as dependency
coroiu Nov 6, 2024
9d81fd8
chore: clean up unused file
coroiu Nov 7, 2024
e3aa732
feat: generate typescript types
coroiu Nov 7, 2024
fd86a64
chore: add missing dependencies
coroiu Nov 7, 2024
e4be0ee
refactor: rename variant to flat error
coroiu Nov 8, 2024
e9087d3
feat: add macro type attribute
coroiu Nov 8, 2024
4fedaac
feat: add basic (ToString) error support
coroiu Nov 8, 2024
c3647ff
feat: add native JSValue support to errors using bitwarden_error
coroiu Nov 8, 2024
8e8b56b
feat: add native wasm support to flat errors
coroiu Nov 11, 2024
e013203
feat: add support for fully serialized errors
coroiu Nov 11, 2024
eba5023
refactor: move basic implementations into separate module
coroiu Nov 11, 2024
3224046
refactor: move flat implementations into separate module
coroiu Nov 11, 2024
33e6bcd
refactor: move full implementations into separate module
coroiu Nov 11, 2024
e32f5b6
refactor: move main attribute into separate module
coroiu Nov 11, 2024
e8901c6
refactor: only allow flat for enums
coroiu Nov 11, 2024
e4622fb
refactor: simplify flat wasm attributes
coroiu Nov 11, 2024
c2511b3
refactor: remove old BitwardenError trait
coroiu Nov 11, 2024
406c845
fix: tests not matching new variant formatting
coroiu Nov 11, 2024
5c8f5ef
refactor: encapsulate macro output
coroiu Nov 12, 2024
d144611
refactor: stop polluting imports with wasm-bindgen re-export
coroiu Nov 12, 2024
6843e4a
chore: clean up unusued file
coroiu Nov 12, 2024
cb45b42
feat: add isError function to basic errors
coroiu Nov 12, 2024
9d3999e
feat: add isError function to flat errors
coroiu Nov 12, 2024
9139493
fix: dependency format
coroiu Nov 12, 2024
fa8d913
chore: clean up old generic error solution
coroiu Nov 12, 2024
2017aea
fix: lint
coroiu Nov 12, 2024
60a5091
fix: clippy issues
coroiu Nov 12, 2024
159f87b
fix: remove `ToString` implementation in tests
coroiu Nov 12, 2024
1ef0bfe
fix: various issues in tests
coroiu Nov 12, 2024
1e6b2e7
refactor: move everything into attribute macro
coroiu Nov 13, 2024
5cfa4d0
feat: allow custom export names
coroiu Nov 13, 2024
7b627cb
feat: add compilation error for `export_as` with `full`
coroiu Nov 13, 2024
5c74f88
feat: change core error export name
coroiu Nov 13, 2024
7c051d6
Merge branch 'main' into PM-13660-implement-catchable-non-generic-errโ€ฆ
coroiu Nov 13, 2024
e4ac54c
refactor: minimize duplication
coroiu Nov 15, 2024
ebaaeef
refactor: use qualified trait name
coroiu Nov 15, 2024
a3db63f
refactor: reduce rename duplication
coroiu Nov 15, 2024
e1fdbe4
feat: add documentation to macro
coroiu Nov 15, 2024
7f9c7dc
feat: add tsify as dev dependency to macro lib
coroiu Nov 18, 2024
2db85bf
fix: lint
coroiu Nov 18, 2024
6347bae
fix: doctest
coroiu Nov 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 112 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading