Skip to content

Commit

Permalink
feat(lib): cargo ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabbit0w0 committed Sep 11, 2024
1 parent 51dd809 commit e461dac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[package]
name = "yggdrasil-authenticator"
authors = ["Rabbit0w0"]
license = "Apache-2.0"
version = "0.1.0"
authors = ["Rabbit0w0 <rabbit0w0@outlook.com>"]
license = "Apache-2.0"
homepage = "https://github.com/MizukiLab/yggdrasil-authenticator"
repository = "https://github.com/MizukiLab/yggdrasil-authenticator"
documentation = "https://docs.rs/yggdrasil-authenticator"
description = "Rust library for authenticating using Yggdrasil API."
edition = "2021"

[dependencies]
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ Implemented Standard: [authlib-injector](https://github.com/yushijinhun/authlib-
- **JSON Models**: Structs for serializing/deserializing request and response data, including agents, profiles, users, and errors.
- **Error Handling**: Custom error types for handling authentication failures.

## Usage

Add the library to your `Cargo.toml`:

```toml
[dependencies]
yggdrasil-authenticator = "0.1.0"
```

## Sample Code

```rust
Expand Down Expand Up @@ -45,4 +54,4 @@ async fn main() -> Result<(), Box<dyn Error>> {
Ok(())
}

```
```

0 comments on commit e461dac

Please sign in to comment.