Commit f1bd448
authored
add an impl_typed_uuid_kinds macro with x-rust-type support (#71)
This PR adds a new function-style proc macro called
`impl_typed_uuid_kinds`, with support for automatic replacement of UUID
kinds in typify (and therefore progenitor).
A typical invocation is:
```rust
impl_typed_uuid_kinds! {
settings = {
schemars08 = {
attrs = [#[cfg(feature = "schemars")]],
rust_type = {
crate = "my-crate",
version = "*",
path = "my_crate::types",
},
},
},
kinds = {
User = {},
Organization = {},
Project = {},
},
}
```1 parent 3c255dc commit f1bd448
File tree
81 files changed
+3385
-102
lines changed- .github/workflows
- crates
- custom-crate-tests
- src
- tests
- fixtures
- invalid
- output
- valid
- output
- integration-tests
- outputs
- src
- tests
- fixtures
- invalid
- output
- valid
- output
- newtype-uuid-macros
- examples
- src
- internals
- tests
- newtype-uuid
- src
- e2e-example
- e2e-kinds
- src
- e2e-schema-consumer
- src
- e2e-schema-producer
- src
- tests/output
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
81 files changed
+3385
-102
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments