* Adding cargo audit check.
* Update command line.
* Update affected crates.
command: clippy
args: --manifest-path ./bindings/python/Cargo.toml --all-targets --all-features -- -D warnings
+ - name: Run Audit
+ uses: actions-rs/cargo@v1
+ with:
+ command: audit
+ args: -D warnings -f ./bindings/python/Cargo.lock
+
- name: Install
working-directory: ./bindings/python
run: |
command: test
args: --verbose --manifest-path ./safetensors/Cargo.toml
+ - name: Run Audit
+ uses: actions-rs/cargo@v1
+ with:
+ command: audit
+ args: -D warnings -f ./safetensors/Cargo.lock
+
# Verify that Readme.md is up to date.
- name: Make sure, Readme generated from lib.rs matches actual Readme
if: matrix.os == 'ubuntu-latest'
[dependencies]
pyo3 = { version = "0.17.2", features = ["extension-module"] }
-memmap = "0.7"
+memmap2 = "0.5"
serde_json = "1.0"
libloading = "0.7"
#![deny(missing_docs)]
//! Dummy doc
use libloading::{Library, Symbol};
-use memmap::{Mmap, MmapOptions};
+use memmap2::{Mmap, MmapOptions};
use pyo3::exceptions;
use pyo3::once_cell::GILOnceCell;
use pyo3::prelude::*;
serde_json = "1.0"
[dev-dependencies]
-criterion = "0.3"
+criterion = "0.4"
[[bench]]
name = "benchmark"