Skip to content

Commit 0aa7813

Browse files
Initial import in its own repository
0 parents  commit 0aa7813

File tree

11 files changed

+1056
-0
lines changed

11 files changed

+1056
-0
lines changed

.cargo-husky/hooks/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cargo install --git https://github.com/facet-rs/facet-dev
2+
facet-dev generate

.github/workflows/test.yml

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
# GENERATED: this file is generated by https://github.com/facet-rs/facet-dev
2+
3+
name: Tests
4+
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
merge_group:
11+
12+
jobs:
13+
test:
14+
runs-on: depot-ubuntu-24.04-32
15+
16+
container:
17+
image: ghcr.io/facet-rs/facet-ci:latest-amd64
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: Swatinem/rust-cache@v2
22+
23+
- name: ✨ Run tests
24+
shell: bash
25+
run: |
26+
set -euo pipefail
27+
28+
echo "::group::All tests except doc-tests"
29+
cargo nextest run --all-features
30+
echo "::endgroup::"
31+
32+
echo "::group::Doc tests"
33+
output=$(cargo test --doc --all-features 2>&1) || exit_code=$?
34+
if [ "${exit_code:-0}" -ne 0 ]; then
35+
if [ $exit_code -eq 101 ] && echo "$output" | grep -q "no library targets found in package"; then
36+
echo "No library targets found, skipping doc tests"
37+
else
38+
echo "$output"
39+
exit $exit_code
40+
fi
41+
fi
42+
echo "::endgroup::"
43+
44+
msrv:
45+
runs-on: depot-ubuntu-24.04-32
46+
47+
container:
48+
image: ghcr.io/facet-rs/facet-ci:latest-amd64
49+
steps:
50+
- uses: actions/checkout@v4
51+
52+
- uses: Swatinem/rust-cache@v2
53+
54+
- uses: taiki-e/install-action@cargo-hack
55+
56+
- name: ✨ Check MSRV
57+
shell: bash
58+
run: |
59+
set -euo pipefail
60+
61+
cargo hack check --each-feature --locked \
62+
--rust-version --workspace \
63+
--keep-going --exclude-no-default-features
64+
65+
minimal-versions:
66+
runs-on: depot-ubuntu-24.04-32
67+
68+
container:
69+
image: ghcr.io/facet-rs/facet-ci:latest-amd64
70+
steps:
71+
- uses: actions/checkout@v4
72+
73+
- uses: Swatinem/rust-cache@v2
74+
75+
- name: ✨ Check minimal versions
76+
shell: bash
77+
run: |
78+
set -euo pipefail
79+
80+
# Install nightly for minimal-versions feature
81+
rustup toolchain install nightly
82+
83+
# Generate lockfile with minimal versions
84+
cargo +nightly generate-lockfile -Z minimal-versions
85+
86+
# Check with stable using minimal versions
87+
cargo check --workspace --all-features --locked --keep-going
88+
89+
docs:
90+
runs-on: depot-ubuntu-24.04-32
91+
92+
container:
93+
image: ghcr.io/facet-rs/facet-ci:latest-amd64
94+
steps:
95+
- uses: actions/checkout@v4
96+
97+
- uses: Swatinem/rust-cache@v2
98+
99+
- name: ✨ Check documentation
100+
shell: bash
101+
env:
102+
RUSTDOCFLAGS: -D warnings
103+
run: |
104+
set -euo pipefail
105+
106+
cargo doc --workspace --all-features --no-deps --document-private-items --keep-going
107+
108+
lockfile:
109+
runs-on: depot-ubuntu-24.04-4
110+
111+
container:
112+
image: ghcr.io/facet-rs/facet-ci:latest-amd64
113+
steps:
114+
- uses: actions/checkout@v4
115+
116+
- uses: Swatinem/rust-cache@v2
117+
118+
- name: ✨ Check lockfile is updated
119+
shell: bash
120+
run: |
121+
cargo update --workspace --locked
122+
123+
clippy:
124+
runs-on: depot-ubuntu-24.04-16
125+
126+
container:
127+
image: ghcr.io/facet-rs/facet-ci:latest-amd64
128+
permissions:
129+
security-events: write # to upload sarif results
130+
steps:
131+
- uses: actions/checkout@v4
132+
133+
- uses: Swatinem/rust-cache@v2
134+
135+
- name: Install SARIF tools
136+
shell: bash
137+
run: |
138+
cargo install clippy-sarif --locked
139+
cargo install sarif-fmt --locked
140+
141+
- name: ✨ Run clippy with SARIF output
142+
shell: bash
143+
run: |
144+
cargo clippy --workspace --all-features --all-targets --message-format=json | clippy-sarif | tee clippy-results.sarif | sarif-fmt
145+
continue-on-error: true
146+
147+
- name: Upload SARIF results
148+
uses: github/codeql-action/upload-sarif@v3
149+
with:
150+
sarif_file: clippy-results.sarif
151+
wait-for-processing: true
152+
153+
- name: Report status
154+
shell: bash
155+
run: |
156+
cargo clippy --workspace --all-features --all-targets --keep-going -- -D warnings --allow deprecated

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

CHANGELOG.md

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [0.23.23](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.22...facet-jsonschema-v0.23.23) - 2025-07-03
11+
12+
### Other
13+
14+
- Rename SmartPointer to Pointer
15+
16+
## [0.23.22](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.21...facet-jsonschema-v0.23.22) - 2025-06-26
17+
18+
### Other
19+
20+
- Remove ScalarDef
21+
22+
## [0.23.21](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.20...facet-jsonschema-v0.23.21) - 2025-06-17
23+
24+
### Other
25+
26+
- updated the following local packages: facet-core, facet-macros
27+
28+
## [0.23.20](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.19...facet-jsonschema-v0.23.20) - 2025-06-15
29+
30+
### Other
31+
32+
- updated the following local packages: facet-core, facet-macros
33+
34+
## [0.23.19](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.18...facet-jsonschema-v0.23.19) - 2025-06-04
35+
36+
### Other
37+
38+
- rename facet-derive(-*) to facet-macros(-*)
39+
40+
## [0.23.18](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.17...facet-jsonschema-v0.23.18) - 2025-06-04
41+
42+
### Other
43+
44+
- updated the following local packages: facet-core, facet-derive
45+
46+
## [0.23.17](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.16...facet-jsonschema-v0.23.17) - 2025-06-03
47+
48+
### Other
49+
50+
- Add discord logo + link
51+
52+
## [0.23.16](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.15...facet-jsonschema-v0.23.16) - 2025-06-02
53+
54+
### Other
55+
56+
- updated the following local packages: facet-core, facet-derive
57+
58+
## [0.23.15](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.14...facet-jsonschema-v0.23.15) - 2025-05-31
59+
60+
### Other
61+
62+
- YAML transparent types fixes
63+
- More facet-yaml test fixes
64+
- wow everything typechecks
65+
66+
## [0.23.14](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.13...facet-jsonschema-v0.23.14) - 2025-05-27
67+
68+
### Other
69+
70+
- updated the following local packages: facet-core, facet-derive
71+
72+
## [0.23.13](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.12...facet-jsonschema-v0.23.13) - 2025-05-26
73+
74+
### Other
75+
76+
- updated the following local packages: facet-core, facet-derive
77+
78+
## [0.23.12](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.11...facet-jsonschema-v0.23.12) - 2025-05-24
79+
80+
### Other
81+
82+
- updated the following local packages: facet-core, facet-derive
83+
84+
## [0.23.11](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.10...facet-jsonschema-v0.23.11) - 2025-05-21
85+
86+
### Other
87+
88+
- updated the following local packages: facet-core, facet-derive
89+
90+
## [0.23.10](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.9...facet-jsonschema-v0.23.10) - 2025-05-20
91+
92+
### Other
93+
94+
- updated the following local packages: facet-core, facet-derive
95+
96+
## [0.23.9](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.8...facet-jsonschema-v0.23.9) - 2025-05-18
97+
98+
### Other
99+
100+
- Introduce `'shape` lifetime, allowing non-'static shapes.
101+
102+
## [0.23.8](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.7...facet-jsonschema-v0.23.8) - 2025-05-16
103+
104+
### Other
105+
106+
- Rust 1.87 clippy fixes
107+
- Support OffsetDateTime in YAML
108+
109+
## [0.23.7](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.6...facet-jsonschema-v0.23.7) - 2025-05-13
110+
111+
### Other
112+
113+
- updated the following local packages: facet-core, facet-derive
114+
115+
## [0.23.6](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.5...facet-jsonschema-v0.23.6) - 2025-05-12
116+
117+
### Other
118+
119+
- updated the following local packages: facet-core, facet-derive
120+
121+
## [0.23.5](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.4...facet-jsonschema-v0.23.5) - 2025-05-12
122+
123+
### Added
124+
125+
- *(jsonschema)* handle smart pointers
126+
- *(jsonschema)* handle references
127+
128+
## [0.23.4](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.3...facet-jsonschema-v0.23.4) - 2025-05-10
129+
130+
### Other
131+
132+
- updated the following local packages: facet-core, facet-derive
133+
134+
## [0.23.3](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.2...facet-jsonschema-v0.23.3) - 2025-05-10
135+
136+
### Other
137+
138+
- updated the following local packages: facet-core, facet-derive
139+
140+
## [0.23.2](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.1...facet-jsonschema-v0.23.2) - 2025-05-10
141+
142+
### Other
143+
144+
- updated the following local packages: facet-core, facet-derive
145+
146+
## [0.23.1](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.23.0...facet-jsonschema-v0.23.1) - 2025-05-10
147+
148+
### Other
149+
150+
- Release facet-derive
151+
- Release facet-derive-parser
152+
- Upgrade facet-core
153+
- Fix clippy warning: use core instead of std
154+
- Migrate facet-jsonschema to use Type::User(UserType::Struct)
155+
156+
## [0.22.0](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.21.0...facet-jsonschema-v0.22.0) - 2025-05-06
157+
158+
### Other
159+
160+
- *(deps)* cleanup unused dependecies with cargo-machete
161+
162+
## [0.21.0](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.20.0...facet-jsonschema-v0.21.0) - 2025-05-02
163+
164+
### Other
165+
166+
- Don't depend on git version of insta anymore
167+
168+
## [0.20.0](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.19.0...facet-jsonschema-v0.20.0) - 2025-04-29
169+
170+
### Other
171+
172+
- update Cargo.toml dependencies
173+
174+
## [0.19.0](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.18.1...facet-jsonschema-v0.19.0) - 2025-04-27
175+
176+
### Other
177+
178+
- update Cargo.toml dependencies
179+
180+
## [0.18.1](https://github.com/facet-rs/facet/compare/facet-jsonschema-v0.18.0...facet-jsonschema-v0.18.1) - 2025-04-26
181+
182+
### Other
183+
184+
- update Cargo.toml dependencies

0 commit comments

Comments
 (0)