Skip to content

Commit

Permalink
Merge pull request #8 from nsat/ff-dep-cleanup
Browse files Browse the repository at this point in the history
[deps] remove libc and minimise required chrono features
  • Loading branch information
spire-ffoston authored Nov 12, 2020
2 parents 08a99b6 + d5e3cb5 commit ae70d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ build = "build.rs"
links = "static=sgp4"

[dependencies]
chrono = { version="0.4" }
time = "0.2.16"
libc = "0.2.71"
chrono = { version="0.4", default-features=false }
thiserror = "1.0"

[build-dependencies]
Expand Down
4 changes: 1 addition & 3 deletions src/sgp4_sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
//! rely heavily on `unsafe` code, and it is recommended to instead use the other, high level
//! bindings provided by the `sgp4` crate.
extern crate libc;

use libc::{c_char, c_double, c_int, c_long};
use std::ffi::{CString, NulError};
use std::os::raw::{c_char, c_double, c_int, c_long};

use chrono::prelude::*;
use chrono::DateTime;
Expand Down

0 comments on commit ae70d36

Please sign in to comment.