Skip to content

Commit

Permalink
Merge pull request #6 from Horusiath/release-v0.2
Browse files Browse the repository at this point in the history
release v0.2
  • Loading branch information
Horusiath authored Nov 25, 2023
2 parents 5bf0fb1 + f2d11f1 commit c3a3c87
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 18 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Release packages

jobs:
release-crate:
name: release to crates.io
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2

- name: install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: cargo publish yrs-kvstore
run: cd yrs-kvstore && cargo publish --all-features --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: cargo publish yrs-lmdb
run: sleep 20 && cd yrs-lmdb && cargo publish --all-features --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: cargo publish yrs-rocksdb
run: sleep 20 && cd yrs-rocksdb && cargo publish --all-features --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
9 changes: 4 additions & 5 deletions yrs-kvstore/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yrs-kvstore"
version = "0.1.0"
version = "0.2.0"
description = "Generic persistence layer over Yrs documents"
license = "MIT"
authors = ["Bartosz Sypytkowski <[email protected]>"]
Expand All @@ -13,13 +13,12 @@ readme = "./README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
lib0 = ">= 0.16"
yrs = ">= 0.16"
yrs = "0.17"
thiserror = "1.0"
smallvec = { version="1.10", features=["write","union","const_generics","const_new"] }
smallvec = { version = "1.10", features=["write","union","const_generics","const_new"] }

[dev-dependencies]
criterion = "0.4"
criterion = "0.5"
rand = "0.7"

[lib]
Expand Down
9 changes: 4 additions & 5 deletions yrs-lmdb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yrs-lmdb"
version = "0.1.0"
version = "0.2.0"
description = "Persistence layer over Yrs documents for LMDB backend"
license = "MIT"
authors = ["Bartosz Sypytkowski <[email protected]>"]
Expand All @@ -13,13 +13,12 @@ readme = "./README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
yrs-kvstore = {version = "0.1", path = "../yrs-kvstore"}
yrs-kvstore = {version = "0.2", path = "../yrs-kvstore"}
lmdb-rs = { version = "0.7" }

[dev-dependencies]
lib0 = ">= 0.16"
yrs = ">= 0.16"
criterion = "0.4"
yrs = "0.17"
criterion = "0.5"
rand = "0.7"

[[bench]]
Expand Down
2 changes: 1 addition & 1 deletion yrs-lmdb/examples/lmdb.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use lib0::decoding::{Cursor, Read};
use lmdb_rs::core::DbCreate;
use lmdb_rs::Environment;
use std::sync::Arc;
use std::time::Instant;
use yrs::encoding::read::{Cursor, Read};
use yrs::{Doc, Text, Transact};
use yrs_kvstore::DocOps;
use yrs_lmdb::LmdbStore;
Expand Down
11 changes: 5 additions & 6 deletions yrs-rocksdb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yrs-rocksdb"
version = "0.1.0"
version = "0.2.0"
description = "Persistence layer over Yrs documents for RocksDB backend"
license = "MIT"
authors = ["Bartosz Sypytkowski <[email protected]>"]
Expand All @@ -13,13 +13,12 @@ readme = "./README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
yrs-kvstore = {version = "0.1", path = "../yrs-kvstore"}
rocksdb = { version = ">=0.19" }
yrs-kvstore = {version = "0.2", path = "../yrs-kvstore"}
rocksdb = { version = "0.21" }

[dev-dependencies]
lib0 = ">= 0.16"
yrs = ">= 0.16"
criterion = "0.4"
yrs = "0.17"
criterion = "0.5"
rand = "0.7"

[[bench]]
Expand Down
2 changes: 1 addition & 1 deletion yrs-rocksdb/examples/rocksdb.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use lib0::decoding::{Cursor, Read};
use rocksdb::TransactionDB;
use std::sync::Arc;
use std::time::Instant;
use yrs::encoding::read::{Cursor, Read};
use yrs::{Doc, Text, Transact};
use yrs_kvstore::DocOps;
use yrs_rocksdb::RocksDBStore;
Expand Down

0 comments on commit c3a3c87

Please sign in to comment.