Rename libostree-sys to ostree-sys

This commit is contained in:
Felix Krull 2019-05-16 20:37:42 +02:00 committed by Colin Walters
parent e62ca73e82
commit f4cf9d3377
8 changed files with 33 additions and 33 deletions

View File

@ -12,20 +12,20 @@ stages:
- build - build
- publish - publish
# libostree-sys # ostree-sys
libostree-sys: ostree-sys:
stage: build stage: build
script: script:
- cargo test --verbose --manifest-path sys/Cargo.toml --all-features - cargo test --verbose --manifest-path sys/Cargo.toml --all-features
libostree-sys_nightly: ostree-sys_nightly:
stage: build stage: build
image: rustlang/rust:nightly image: rustlang/rust:nightly
script: script:
- cargo test --verbose --manifest-path sys/Cargo.toml --all-features - cargo test --verbose --manifest-path sys/Cargo.toml --all-features
allow_failure: true allow_failure: true
publish_libostree-sys: publish_ostree-sys:
stage: publish stage: publish
script: script:
- cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN - cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN

View File

@ -36,28 +36,28 @@ gio = "0.5"
glib-sys = "0.7" glib-sys = "0.7"
gobject-sys = "0.7" gobject-sys = "0.7"
gio-sys = "0.7" gio-sys = "0.7"
libostree-sys = { version = "0.2", path = "sys" } ostree-sys = { version = "0.2", path = "sys" }
[dev-dependencies] [dev-dependencies]
tempfile = "3" tempfile = "3"
[features] [features]
dox = ["libostree-sys/dox"] dox = ["ostree-sys/dox"]
v2014_9 = ["libostree-sys/v2014_9"] v2014_9 = ["ostree-sys/v2014_9"]
v2015_7 = ["v2014_9", "libostree-sys/v2015_7"] v2015_7 = ["v2014_9", "ostree-sys/v2015_7"]
v2017_3 = ["v2015_7", "libostree-sys/v2017_3"] v2017_3 = ["v2015_7", "ostree-sys/v2017_3"]
v2017_4 = ["v2017_3", "libostree-sys/v2017_4"] v2017_4 = ["v2017_3", "ostree-sys/v2017_4"]
v2017_6 = ["v2017_4", "libostree-sys/v2017_6"] v2017_6 = ["v2017_4", "ostree-sys/v2017_6"]
v2017_7 = ["v2017_6", "libostree-sys/v2017_7"] v2017_7 = ["v2017_6", "ostree-sys/v2017_7"]
v2017_8 = ["v2017_7", "libostree-sys/v2017_8"] v2017_8 = ["v2017_7", "ostree-sys/v2017_8"]
v2017_9 = ["v2017_8", "libostree-sys/v2017_9"] v2017_9 = ["v2017_8", "ostree-sys/v2017_9"]
v2017_10 = ["v2017_9", "libostree-sys/v2017_10"] v2017_10 = ["v2017_9", "ostree-sys/v2017_10"]
v2017_11 = ["v2017_10", "libostree-sys/v2017_11"] v2017_11 = ["v2017_10", "ostree-sys/v2017_11"]
v2017_12 = ["v2017_11", "libostree-sys/v2017_12"] v2017_12 = ["v2017_11", "ostree-sys/v2017_12"]
v2017_13 = ["v2017_12", "libostree-sys/v2017_13"] v2017_13 = ["v2017_12", "ostree-sys/v2017_13"]
v2017_15 = ["v2017_13", "libostree-sys/v2017_15"] v2017_15 = ["v2017_13", "ostree-sys/v2017_15"]
v2018_2 = ["v2017_15", "libostree-sys/v2018_2"] v2018_2 = ["v2017_15", "ostree-sys/v2018_2"]
v2018_3 = ["v2018_2", "libostree-sys/v2018_3"] v2018_3 = ["v2018_2", "ostree-sys/v2018_3"]
v2018_5 = ["v2018_3", "libostree-sys/v2018_5"] v2018_5 = ["v2018_3", "ostree-sys/v2018_5"]
v2018_6 = ["v2018_5", "libostree-sys/v2018_6"] v2018_6 = ["v2018_5", "ostree-sys/v2018_6"]
v2018_7 = ["v2018_6", "libostree-sys/v2018_7"] v2018_7 = ["v2018_6", "ostree-sys/v2018_7"]

View File

@ -1,4 +1,4 @@
all: gir/libostree gir/libostree-sys all: gir/libostree gir/ostree-sys
.PHONY: update-gir-files .PHONY: update-gir-files

View File

@ -41,7 +41,7 @@ features = ["v2018_7"]
``` ```
## Developing ## Developing
The `libostree` and `libostree-sys` crates can be built and tested using regular The `libostree` and `ostree-sys` crates can be built and tested using regular
Cargo commands. Cargo commands.
### Generated code ### Generated code
@ -50,7 +50,7 @@ Most code is generated based on the gir files using the
the included Makefile: the included Makefile:
```ShellSession ```ShellSession
$ make gir/libostree gir/libostree-sys $ make gir/libostree gir/ostree-sys
``` ```
Run the following command to update the bundled gir files: Run the following command to update the bundled gir files:

View File

@ -1,7 +1,7 @@
extern crate gio_sys as gio_ffi; extern crate gio_sys as gio_ffi;
extern crate glib_sys as glib_ffi; extern crate glib_sys as glib_ffi;
extern crate gobject_sys as gobject_ffi; extern crate gobject_sys as gobject_ffi;
extern crate libostree_sys as ffi; extern crate ostree_sys as ffi;
#[macro_use] #[macro_use]
extern crate glib; extern crate glib;
extern crate gio; extern crate gio;

View File

@ -36,18 +36,18 @@ v2018_6 = ["v2018_5"]
v2018_7 = ["v2018_6"] v2018_7 = ["v2018_6"]
[lib] [lib]
name = "libostree_sys" name = "ostree_sys"
[package] [package]
authors = ["Felix Krull"] authors = ["Felix Krull"]
build = "build.rs" build = "build.rs"
categories = ["external-ffi-bindings"] categories = ["external-ffi-bindings"]
description = "FFI bindings to libostree-1" description = "FFI bindings to libostree-1"
documentation = "https://fkrull.gitlab.io/ostree-rs/libostree_sys" documentation = "https://fkrull.gitlab.io/ostree-rs/ostree_sys"
keywords = ["ffi", "ostree", "libostree"] keywords = ["ffi", "ostree", "libostree"]
license = "MIT" license = "MIT"
links = "ostree-1" links = "ostree-1"
name = "libostree-sys" name = "ostree-sys"
repository = "https://gitlab.com/fkrull/ostree-rs" repository = "https://gitlab.com/fkrull/ostree-rs"
version = "0.2.0" version = "0.2.0"
[package.metadata.docs.rs] [package.metadata.docs.rs]

View File

@ -2,7 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT
extern crate libostree_sys; extern crate ostree_sys;
extern crate shell_words; extern crate shell_words;
extern crate tempdir; extern crate tempdir;
use std::env; use std::env;
@ -11,7 +11,7 @@ use std::path::Path;
use std::mem::{align_of, size_of}; use std::mem::{align_of, size_of};
use std::process::Command; use std::process::Command;
use std::str; use std::str;
use libostree_sys::*; use ostree_sys::*;
static PACKAGES: &[&str] = &["ostree-1"]; static PACKAGES: &[&str] = &["ostree-1"];