Skip to content

Commit 0a7b55b

Browse files
committed
Remove libc
1 parent 96a57b9 commit 0a7b55b

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "blas-sys"
3-
version = "0.8.0"
3+
version = "0.9.0"
44
edition = "2021"
55
license = "Apache-2.0 OR MIT"
66
authors = [
@@ -16,6 +16,3 @@ repository = "https://github.com/blas-lapack-rs/blas-sys"
1616
readme = "README.md"
1717
categories = ["external-ffi-bindings", "science"]
1818
keywords = ["linear-algebra"]
19-
20-
[dependencies]
21-
libc = "0.2"

src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@
77
88
#![no_std]
99

10-
extern crate libc;
11-
12-
use libc::{c_char, c_double, c_float, c_int};
10+
use core::ffi::{c_char, c_double, c_float, c_int};
1311

1412
/// A complex number with 64-bit parts.
1513
#[allow(bad_style)]
16-
pub type c_double_complex = [libc::c_double; 2];
14+
pub type c_double_complex = [c_double; 2];
1715

1816
/// A complex number with 32-bit parts.
1917
#[allow(bad_style)]
20-
pub type c_float_complex = [libc::c_float; 2];
18+
pub type c_float_complex = [c_float; 2];
2119

2220
// Level 1
2321
//

0 commit comments

Comments
 (0)