Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the, now useless, bytemuck dependency #232

Merged
merged 4 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading