edition = 2018
This commit is contained in:
parent
be7b547623
commit
dac9411a56
@ -11,6 +11,8 @@ readme = "README.md"
|
|||||||
repository = "https://github.com/FauxFaux/apt-pkg-native-rs"
|
repository = "https://github.com/FauxFaux/apt-pkg-native-rs"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
|
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[badges.travis-ci]
|
[badges.travis-ci]
|
||||||
repository = "FauxFaux/apt-pkg-native-rs"
|
repository = "FauxFaux/apt-pkg-native-rs"
|
||||||
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
extern crate apt_pkg_native;
|
|
||||||
extern crate boolinator;
|
|
||||||
|
|
||||||
use apt_pkg_native::Cache;
|
use apt_pkg_native::Cache;
|
||||||
|
|
||||||
use boolinator::Boolinator;
|
use boolinator::Boolinator;
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
extern crate apt_pkg_native;
|
|
||||||
extern crate itertools;
|
|
||||||
|
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
|
|
||||||
use apt_pkg_native::simple;
|
use apt_pkg_native::simple;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
extern crate apt_pkg_native;
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
use apt_pkg_native::simple;
|
use apt_pkg_native::simple;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
use std::collections::HashMap;
|
||||||
|
use std::collections::HashSet;
|
||||||
/// A port of a randomly selected Python program:
|
/// A port of a randomly selected Python program:
|
||||||
///
|
///
|
||||||
/// ```python
|
/// ```python
|
||||||
@ -23,12 +25,8 @@
|
|||||||
/// for ver in sorted(sources[src]):
|
/// for ver in sorted(sources[src]):
|
||||||
/// print('{}={}'.format(src, ver))
|
/// print('{}={}'.format(src, ver))
|
||||||
/// ```
|
/// ```
|
||||||
extern crate apt_pkg_native;
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
use std::collections::HashMap;
|
|
||||||
use std::collections::HashSet;
|
|
||||||
|
|
||||||
use apt_pkg_native::Cache;
|
use apt_pkg_native::Cache;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -31,16 +31,12 @@
|
|||||||
//! `libapt-pkg` also just segfaults if you do anything wrong, or re-use anything at the wrong time,
|
//! `libapt-pkg` also just segfaults if you do anything wrong, or re-use anything at the wrong time,
|
||||||
//! or etc. I've tried to hide this, but I advise you not to push or outsmart the borrow checker.
|
//! or etc. I've tried to hide this, but I advise you not to push or outsmart the borrow checker.
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate lazy_static;
|
|
||||||
extern crate libc;
|
|
||||||
|
|
||||||
mod citer;
|
mod citer;
|
||||||
mod raw;
|
mod raw;
|
||||||
mod sane;
|
mod sane;
|
||||||
pub mod simple;
|
pub mod simple;
|
||||||
|
|
||||||
pub use sane::Cache;
|
pub use crate::sane::Cache;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
/// * `*mut c_chars` are to be freed by `libc::free`.
|
/// * `*mut c_chars` are to be freed by `libc::free`.
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
|
use lazy_static::lazy_static;
|
||||||
use libc::c_char;
|
use libc::c_char;
|
||||||
use libc::c_void;
|
use libc::c_void;
|
||||||
|
|
||||||
|
@ -4,10 +4,10 @@ use std::marker::PhantomData;
|
|||||||
use std::sync::MutexGuard;
|
use std::sync::MutexGuard;
|
||||||
|
|
||||||
use libc;
|
use libc;
|
||||||
use raw;
|
|
||||||
|
|
||||||
use citer::CIterator;
|
use crate::citer::CIterator;
|
||||||
use citer::RawIterator;
|
use crate::citer::RawIterator;
|
||||||
|
use crate::raw;
|
||||||
|
|
||||||
/// A reference to the package cache singleton,
|
/// A reference to the package cache singleton,
|
||||||
/// from which most functionality can be accessed.
|
/// from which most functionality can be accessed.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
use sane;
|
use crate::sane;
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct BinaryPackage {
|
pub struct BinaryPackage {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user