Skip to content

Commit

Permalink
Merge pull request #232 from meilisearch/remove-bytemuck
Browse files Browse the repository at this point in the history
Remove the, now useless, bytemuck dependency
  • Loading branch information
Kerollmops authored Feb 12, 2024
2 parents 8d2ee76 + ac5a913 commit 3652ed6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
check_all_features:
name: Check all the features of the heed project
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: -D warnings
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
Expand Down
4 changes: 1 addition & 3 deletions heed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ readme = "../README.md"
edition = "2021"

[dependencies]
bitflags = "2.3.3"
bytemuck = "1.12.3"
bitflags = { version = "2.3.3", features = ["serde"] }
byteorder = { version = "1.4.3", default-features = false }
heed-traits = { version = "0.20.0-alpha.9", path = "../heed-traits" }
heed-types = { version = "0.20.0-alpha.9", default-features = false, path = "../heed-types" }
Expand All @@ -25,7 +24,6 @@ synchronoise = "1.0.1"

[dev-dependencies]
serde = { version = "1.0.151", features = ["derive"] }
bytemuck = { version = "1.12.3", features = ["derive"] }
tempfile = "3.3.0"

[target.'cfg(windows)'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion heed/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ use std::ffi::CStr;
use std::{error, fmt, io, mem, result};

use heed_traits as traits;
pub use {bytemuck, byteorder, heed_types as types};
pub use {byteorder, heed_types as types};

use self::cursor::{RoCursor, RwCursor};
pub use self::database::{Database, DatabaseOpenOptions};
Expand Down
5 changes: 2 additions & 3 deletions heed/src/mdb/lmdb_ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ pub use ffi::{
mdb_env_get_fd, mdb_env_get_flags, mdb_env_info, mdb_env_open, mdb_env_set_mapsize,
mdb_env_set_maxdbs, mdb_env_set_maxreaders, mdb_env_stat, mdb_env_sync, mdb_filehandle_t,
mdb_get, mdb_put, mdb_reader_check, mdb_set_compare, mdb_stat, mdb_txn_abort, mdb_txn_begin,
mdb_txn_commit, mdb_version, MDB_cursor, MDB_dbi, MDB_env, MDB_envinfo, MDB_stat, MDB_txn,
MDB_val, MDB_APPEND, MDB_APPENDDUP, MDB_CP_COMPACT, MDB_CREATE, MDB_CURRENT, MDB_DUPSORT,
MDB_NODUPDATA, MDB_NOOVERWRITE, MDB_RDONLY, MDB_RESERVE,
mdb_txn_commit, mdb_version, MDB_cursor, MDB_dbi, MDB_env, MDB_stat, MDB_txn, MDB_val,
MDB_CP_COMPACT, MDB_CURRENT, MDB_RDONLY, MDB_RESERVE,
};
use lmdb_master_sys as ffi;

Expand Down

0 comments on commit 3652ed6

Please sign in to comment.