Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

Commit 366a5f8

Browse files
ci: improve workflows (#92)
1 parent 96b07af commit 366a5f8

11 files changed

Lines changed: 255 additions & 17 deletions

File tree

.github/renovate.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["github>RustForWeb/.github:renovate-config"]
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["github>RustForWeb/.github:renovate-config"]
44
}

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@ on:
55
push:
66
branches:
77
- main
8-
8+
99
permissions:
1010
contents: read
1111

12-
concurrency:
13-
group: ${{ github.workflow }}-${{ github.ref }}
14-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
15-
1612
jobs:
1713
lint:
1814
name: Lint
@@ -30,21 +26,27 @@ jobs:
3026
with:
3127
components: clippy, rustfmt
3228

29+
- name: Install Cargo Binary Install
30+
uses: cargo-bins/cargo-binstall@main
31+
3332
- name: Install crates
34-
run: cargo install cargo-deny cargo-machete
33+
run: cargo binstall -y --force cargo-deny cargo-machete cargo-sort
3534

3635
- name: Lint
3736
run: cargo clippy --all-features --locked
3837

39-
- name: Check formatting
40-
run: cargo fmt --all --check
41-
4238
- name: Check dependencies
4339
run: cargo deny check
4440

4541
- name: Check unused dependencies
4642
run: cargo machete
4743

44+
- name: Check manifest formatting
45+
run: cargo sort --workspace --check
46+
47+
- name: Check formatting
48+
run: cargo fmt --all --check
49+
4850
test:
4951
name: Test
5052
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
- name: Set up Rust toolchain
3535
uses: actions-rust-lang/setup-rust-toolchain@v1
3636
with:
37-
components: clippy, rustfmt
3837
target: wasm32-unknown-unknown
3938

4039
- name: Install Cargo Binary Install

.gitignore

Lines changed: 143 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,145 @@
1-
# Created by https://www.toptal.com/developers/gitignore/api/rust
2-
# Edit at https://www.toptal.com/developers/gitignore?templates=rust
1+
# Created by https://www.toptal.com/developers/gitignore/api/rust,node
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=rust,node
3+
4+
### Node ###
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
.pnpm-debug.log*
13+
14+
# Diagnostic reports (https://nodejs.org/api/report.html)
15+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
16+
17+
# Runtime data
18+
pids
19+
*.pid
20+
*.seed
21+
*.pid.lock
22+
23+
# Directory for instrumented libs generated by jscoverage/JSCover
24+
lib-cov
25+
26+
# Coverage directory used by tools like istanbul
27+
coverage
28+
*.lcov
29+
30+
# nyc test coverage
31+
.nyc_output
32+
33+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
34+
.grunt
35+
36+
# Bower dependency directory (https://bower.io/)
37+
bower_components
38+
39+
# node-waf configuration
40+
.lock-wscript
41+
42+
# Compiled binary addons (https://nodejs.org/api/addons.html)
43+
build/Release
44+
45+
# Dependency directories
46+
node_modules/
47+
jspm_packages/
48+
49+
# Snowpack dependency directory (https://snowpack.dev/)
50+
web_modules/
51+
52+
# TypeScript cache
53+
*.tsbuildinfo
54+
55+
# Optional npm cache directory
56+
.npm
57+
58+
# Optional eslint cache
59+
.eslintcache
60+
61+
# Optional stylelint cache
62+
.stylelintcache
63+
64+
# Microbundle cache
65+
.rpt2_cache/
66+
.rts2_cache_cjs/
67+
.rts2_cache_es/
68+
.rts2_cache_umd/
69+
70+
# Optional REPL history
71+
.node_repl_history
72+
73+
# Output of 'npm pack'
74+
*.tgz
75+
76+
# Yarn Integrity file
77+
.yarn-integrity
78+
79+
# dotenv environment variable files
80+
.env
81+
.env.development.local
82+
.env.test.local
83+
.env.production.local
84+
.env.local
85+
86+
# parcel-bundler cache (https://parceljs.org/)
87+
.cache
88+
.parcel-cache
89+
90+
# Next.js build output
91+
.next
92+
out
93+
94+
# Nuxt.js build / generate output
95+
.nuxt
96+
dist
97+
98+
# Gatsby files
99+
.cache/
100+
# Comment in the public line in if your project uses Gatsby and not Next.js
101+
# https://nextjs.org/blog/next-9-1#public-directory-support
102+
# public
103+
104+
# vuepress build output
105+
.vuepress/dist
106+
107+
# vuepress v2.x temp and cache directory
108+
.temp
109+
110+
# Docusaurus cache and generated files
111+
.docusaurus
112+
113+
# Serverless directories
114+
.serverless/
115+
116+
# FuseBox cache
117+
.fusebox/
118+
119+
# DynamoDB Local files
120+
.dynamodb/
121+
122+
# TernJS port file
123+
.tern-port
124+
125+
# Stores VSCode versions used for testing VSCode extensions
126+
.vscode-test
127+
128+
# yarn v2
129+
.yarn/cache
130+
.yarn/unplugged
131+
.yarn/build-state.yml
132+
.yarn/install-state.gz
133+
.pnp.*
134+
135+
### Node Patch ###
136+
# Serverless Webpack directories
137+
.webpack/
138+
139+
# Optional stylelint cache
140+
141+
# SvelteKit build / generate output
142+
.svelte-kit
3143

4144
### Rust ###
5145
# Generated by Cargo
@@ -17,4 +157,4 @@ target/
17157
# MSVC Windows builds of rustc generate these, which store debugging information
18158
*.pdb
19159

20-
# End of https://www.toptal.com/developers/gitignore/api/rust
160+
# End of https://www.toptal.com/developers/gitignore/api/rust,node

.pre-commit-config.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-prettier
3+
rev: v3.1.0
4+
hooks:
5+
- id: prettier
6+
language: node
7+
additional_dependencies:
8+
- prettier@^3.6.2
9+
10+
- repo: https://github.com/doublify/pre-commit-rust
11+
rev: v1.0
12+
hooks:
13+
- id: fmt
14+
- id: clippy
15+
16+
- repo: https://github.com/EmbarkStudios/cargo-deny
17+
rev: 0.18.4
18+
hooks:
19+
- id: cargo-deny
20+
21+
# - repo: https://github.com/bnjbvr/cargo-machete
22+
# rev: ba1bcd4
23+
# hooks:
24+
# - id: cargo-machete
25+
- repo: local
26+
hooks:
27+
- id: cargo-machete
28+
name: cargo-machete
29+
language: rust
30+
entry: cargo machete
31+
types: [file, toml]
32+
files: Cargo\.(toml|lock)
33+
pass_filenames: false
34+
35+
- repo: https://github.com/DevinR528/cargo-sort
36+
rev: v2.0.1
37+
hooks:
38+
- id: cargo-sort
39+
args: ['--workspace']

.prettierignore

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

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"bracketSpacing": false,
3+
"printWidth": 120,
4+
"singleQuote": true,
5+
"tabWidth": 4
6+
}
File renamed without changes.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44
[![Docs.rs](https://docs.rs/workos-sdk/badge.svg)](https://docs.rs/workos-sdk/)
55
[![License](https://img.shields.io/crates/l/workos-sdk.svg)](https://github.com/RustForWeb/workos/blob/main/LICENSE)
66

7-
> **Note:** This is an experimental SDK and breaking changes may occur. Use this SDK in production at your own risk, since we can't guarantee its stability.
8-
97
The WorkOS library for Rust provides convenient access to the WorkOS API from applications written in Rust.
108

9+
## Documentation
10+
11+
Documentation for the crate is available on [Docs.rs](https://docs.rs/):
12+
13+
- [`workos-sdk`](https://docs.rs/workos-sdk/latest/workos_sdk/)
14+
1115
## Credits
1216

1317
This project is based on the original `workos` Rust library created by [WorkOS](https://github.com/workos).

package-lock.json

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)