Skip to content

Commit b06fa9d

Browse files
committed
chore: update docs
1 parent 06efe85 commit b06fa9d

File tree

5 files changed

+54
-16
lines changed

5 files changed

+54
-16
lines changed

.github/workflows/coverage.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,3 @@ jobs:
2727
run: |
2828
cargo install cargo-tarpaulin
2929
cargo tarpaulin --out xml
30-
31-
- name: Upload to codecov.io
32-
uses: codecov/codecov-action@v4
33-
with:
34-
token: ${{secrets.CODECOV_TOKEN}}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Security audit
2+
on:
3+
push:
4+
paths:
5+
- '**/Cargo.toml'
6+
- '**/Cargo.lock'
7+
jobs:
8+
security_audit:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: rustsec/[email protected]
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/unit.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: UNIT
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
merge_group:
7+
types: [checks_requested]
8+
jobs:
9+
unit:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-latest, macos-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: dtolnay/rust-toolchain@stable
18+
- uses: Swatinem/rust-cache@v2
19+
- name: Cargo test
20+
run: cargo test

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
2-
name = "casdoor-rs-sdk"
3-
version = "2.5.5"
2+
name = "casdoor-sdk-rust"
3+
version = "1.0.0"
44
edition = "2021"
55
license = "Apache-2.0"
66
description = "A Casdoor SDK (contain APIs) with more complete interfaces and better usability."
7-
repository = "https://github.com/andeya/casdoor-rs-sdk"
8-
documentation = "https://docs.rs/casdoor-rs-sdk"
7+
repository = "https://github.com/andeya/casdoor-sdk-rust"
8+
documentation = "https://docs.rs/casdoor-sdk-rust"
99
readme = "README.md"
1010
homepage = "https://casdoor.org"
1111
keywords = ["iam", "auth", "sso", "oidc", "casdoor"]
12-
authors = ["Andeya Lee <andeyalee@outlook.com>"]
12+
authors = ["Dmitrii Mastitckii <dimulgator@outlook.com>"]
1313

1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
# casdoor-rs-sdk
1+
Features:
2+
* Add openssl for parsing certificate and getting Public Key from it;
3+
* Delete cubix and salvio;
4+
* Delete getters;
5+
* Support decoding multiple jsonwebtoken algos;
6+
7+
This lib is not production ready, cause it use [OAuth2 Release candidate](https://github.com/ramosbugs/oauth2-rs/tree/5.0.0-rc.1) with big API update.
8+
Read more [here](https://github.com/ramosbugs/oauth2-rs/blob/main/UPGRADE.md).
9+
10+
Also, I started it for closing [RUSTSEC-2024-0421](https://rustsec.org/advisories/RUSTSEC-2024-0421.html).
11+
12+
# casdoor-sdk-rust
213

314
A [Casdoor](https://github.com/casdoor/casdoor) SDK (contain APIs) with more complete interfaces and better usability.
415

@@ -11,23 +22,21 @@ A [Casdoor](https://github.com/casdoor/casdoor) SDK (contain APIs) with more com
1122
Run the following Cargo command in your project directory:
1223

1324
```sh
14-
cargo add casdoor-rs-sdk
25+
cargo add casdoor-sdk-rust
1526
```
1627

1728
Or add the following line to your Cargo.toml:
1829

1930
```toml
20-
casdoor-rs-sdk = "2"
31+
casdoor-sdk-rust = "1"
2132
```
2233

23-
Also, `openssl` must be installed on your system.
24-
2534
## Example
2635

2736
```rust
2837
#[cfg(test)]
2938
mod tests {
30-
use casdoor_rs_sdk::*;
39+
use casdoor-sdk-rust::*;
3140

3241
#[test]
3342
fn example() {

0 commit comments

Comments
 (0)