Skip to content

Commit 7807bd1

Browse files
authored
Merge pull request #61 from johanhelsing/bevy-0.15
Bevy 0.15, redb 2
2 parents 79df04c + 6c7a3e1 commit 7807bd1

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: ci
88

99
jobs:
1010
check-default:
11-
name: Check default (sled)
11+
name: Check default (redb)
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
@@ -44,7 +44,7 @@ jobs:
4444
run: cargo check --all-targets --no-default-features --features rocksdb
4545

4646
check-redb:
47-
name: Check redb
47+
name: Check sled
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Checkout
@@ -59,7 +59,7 @@ jobs:
5959
uses: Swatinem/rust-cache@v2
6060

6161
- name: Check
62-
run: cargo check --all-targets --no-default-features --features redb
62+
run: cargo check --all-targets --no-default-features --features sled
6363

6464
check-wasm:
6565
name: Check wasm

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ categories = ["game-development"]
1010
repository = "https://github.com/johanhelsing/bevy_pkv"
1111

1212
[dependencies]
13-
thiserror = "1.0"
14-
serde = { version = "1.0", features = ["derive"] }
15-
bevy_ecs = { version = "0.14", optional = true } # we need for deriving Resource in PkvStore
13+
thiserror = "2"
14+
serde = { version = "1", features = ["derive"] }
15+
bevy_ecs = { version = "0.15", optional = true } # we need for deriving Resource in PkvStore
1616

1717
[features]
1818
default = ["bevy", "redb"]
@@ -27,17 +27,17 @@ web-sys = { version = "0.3", default-features = false, features = [
2727
"Window",
2828
] }
2929
wasm-bindgen = { version = "0.2", default-features = false }
30-
serde_json = "1.0"
30+
serde_json = "1"
3131

3232
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
3333
rocksdb = { version = "0.22", optional = true }
3434
sled = { version = "0.34", optional = true }
3535
rmp-serde = "1.1"
3636
directories = "5.0"
37-
redb = { version = "1.5", optional = true }
37+
redb = { version = "2.2", optional = true }
3838

3939
[dev-dependencies]
40-
bevy = { version = "0.14", default-features = false }
40+
bevy = { version = "0.15", default-features = false }
4141
strum_macros = "0.26"
4242
tempfile = "3"
4343

src/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::Location;
22
use std::path::Path;
33

4-
impl<'a> Location<'a> {
4+
impl Location<'_> {
55
pub fn get_path(&self) -> std::path::PathBuf {
66
match self {
77
Self::CustomPath(path) => path.to_path_buf(),

src/redb_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{Location, StoreImpl};
2-
use redb::{Database, ReadableTable, TableDefinition};
2+
use redb::{Database, TableDefinition};
33
use serde::{de::DeserializeOwned, Serialize};
44
use std::fmt::{Debug, Formatter};
55
pub struct ReDbStore {

0 commit comments

Comments
 (0)