Skip to content

Commit

Permalink
chore: Cargo.toml config and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Oct 17, 2023
1 parent e9a494f commit b8c2007
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: |
rustup target add wasm32-unknown-unknown
cargo publish -p ic-websocket-cdk
echo "version=v$(cargo pkgid -p ic-websocket-cdk | cut -d# -f2 | cut -d: -f2)" >> "$GITHUB_OUTPUT"
echo "version=$(cargo pkgid -p ic-websocket-cdk | cut -d# -f2 | cut -d: -f2)" >> "$GITHUB_OUTPUT"
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ members = [
edition = "2021"
repository = "https://github.com/omnia-network/ic-websocket-cdk-rs"
rust-version = "1.69.0"
description = "IC Websocket Canister Development Kit"
description = "IC Websocket CDK Rust workspace"
license = "MIT"

[workspace.dependencies]
ic-websocket-cdk = { path = "src/ic-websocket-cdk", version = "0.1.0" }
ic-websocket-cdk = { path = "src/ic-websocket-cdk" }

candid = "0.9.3"
ic-cdk = "0.10.0"
Expand Down
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,12 @@ This repository contains the Rust implementation of IC WebSocket CDK. For more i
## Installation

You can install the library by adding the following line to your `Cargo.toml` file:
You can install the library by running:

```toml
ic-websocket-cdk = { git = "https://github.com/omnia-network/ic-websocket-cdk-rs", rev = "<last-commit-hash-on-this-repo>" }
```

For example, a valid installation line would be:

```toml
ic-websocket-cdk = { git = "https://github.com/omnia-network/ic-websocket-cdk-rs", rev = "06fa3934743e9505f765660e62aba1bc47706d5a" }
```bash
cargo add ic-websocket-cdk
```

It will also be available on crates.io soon.

## Usage

Refer to the [ic_websocket_example](https://github.com/omnia-network/ic_websocket_example) repository for an example of how to use the library.
Expand Down
7 changes: 5 additions & 2 deletions src/ic-websocket-cdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[package]
name = "ic-websocket-cdk"
version = "0.1.0"
version = "0.1.1"
edition.workspace = true
rust-version.workspace = true
repository.workspace = true
description.workspace = true
license.workspace = true
description = "IC Websocket Canister Development Kit"
homepage = "https://docs.rs/ic-websocket-cdk"
documentation = "https://docs.rs/ic-websocket-cdk"
readme = "../../README.md"
exclude = [
"**/*.did",
]
Expand Down

0 comments on commit b8c2007

Please sign in to comment.