Skip to content

Commit

Permalink
remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Aug 16, 2024
1 parent d9960e7 commit a3e1cec
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 30 deletions.
19 changes: 2 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,19 @@ name = "ndelement"
crate-type = ["lib", "cdylib"]

[dependencies]
approx = "0.5"
cauchy = "0.4.*"
itertools = "0.13.*"
mpi = { version = "0.8.*", optional = true }
num = "0.4"
paste = "1.*"
lazy_static = "1.4"
libc = "0.2"
log = "0.4"
rayon = "1.9"
rand = "0.8.5"
rlst = "0.2.0"
serde = { version = "1", features = ["derive"], optional = true }
thiserror="1.*"

[dev-dependencies]
bempp = "0.1.0"
paste = "1.*"
approx = "0.5"

[package.metadata.docs.rs]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]

[lints.clippy]
wildcard_imports = "forbid"

[target.aarch64-apple-darwin.dev-dependencies]
blas-src = { version = "0.10", features = ["accelerate"]}
lapack-src = { version = "0.10", features = ["accelerate"]}

[target.x86_64-unknown-linux-gnu.dev-dependencies]
blas-src = { version = "0.10", features = ["blis"]}
lapack-src = { version = "0.10", features = ["netlib"]}
3 changes: 0 additions & 3 deletions examples/element_family.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ use ndelement::ciarlet::LagrangeElementFamily;
use ndelement::traits::{ElementFamily, FiniteElement};
use ndelement::types::{Continuity, ReferenceCellType};

extern crate blas_src;
extern crate lapack_src;

fn main() {
// Create the degree 2 Lagrange element family. A family is a set of finite elements with the
// same family type, degree, and continuity across a set of cells
Expand Down
3 changes: 0 additions & 3 deletions examples/lagrange_element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ use ndelement::{
};
use rlst::{rlst_dynamic_array2, rlst_dynamic_array4, RawAccess};

extern crate blas_src;
extern crate lapack_src;

fn main() {
// Create a P2 element on a triangle
let element = lagrange::create::<f64>(ReferenceCellType::Triangle, 2, Continuity::Standard);
Expand Down
8 changes: 1 addition & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
//! n-dimensional grid
#![cfg_attr(feature = "strict", deny(warnings))]
#![cfg_attr(feature = "strict", deny(warnings), deny(unused_crate_dependencies))]
#![warn(missing_docs)]

pub mod ciarlet;
pub mod polynomials;
pub mod reference_cell;
pub mod traits;
pub mod types;

#[cfg(test)]
mod test {
extern crate blas_src;
extern crate lapack_src;
}

0 comments on commit a3e1cec

Please sign in to comment.