mirror of
https://github.com/ostreedev/ostree.git
synced 2024-10-27 01:55:35 +03:00
Rename libostree-sys to ostree-sys
This commit is contained in:
parent
e62ca73e82
commit
f4cf9d3377
@ -12,20 +12,20 @@ stages:
|
||||
- build
|
||||
- publish
|
||||
|
||||
# libostree-sys
|
||||
libostree-sys:
|
||||
# ostree-sys
|
||||
ostree-sys:
|
||||
stage: build
|
||||
script:
|
||||
- cargo test --verbose --manifest-path sys/Cargo.toml --all-features
|
||||
|
||||
libostree-sys_nightly:
|
||||
ostree-sys_nightly:
|
||||
stage: build
|
||||
image: rustlang/rust:nightly
|
||||
script:
|
||||
- cargo test --verbose --manifest-path sys/Cargo.toml --all-features
|
||||
allow_failure: true
|
||||
|
||||
publish_libostree-sys:
|
||||
publish_ostree-sys:
|
||||
stage: publish
|
||||
script:
|
||||
- cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
|
||||
|
@ -36,28 +36,28 @@ gio = "0.5"
|
||||
glib-sys = "0.7"
|
||||
gobject-sys = "0.7"
|
||||
gio-sys = "0.7"
|
||||
libostree-sys = { version = "0.2", path = "sys" }
|
||||
ostree-sys = { version = "0.2", path = "sys" }
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3"
|
||||
|
||||
[features]
|
||||
dox = ["libostree-sys/dox"]
|
||||
v2014_9 = ["libostree-sys/v2014_9"]
|
||||
v2015_7 = ["v2014_9", "libostree-sys/v2015_7"]
|
||||
v2017_3 = ["v2015_7", "libostree-sys/v2017_3"]
|
||||
v2017_4 = ["v2017_3", "libostree-sys/v2017_4"]
|
||||
v2017_6 = ["v2017_4", "libostree-sys/v2017_6"]
|
||||
v2017_7 = ["v2017_6", "libostree-sys/v2017_7"]
|
||||
v2017_8 = ["v2017_7", "libostree-sys/v2017_8"]
|
||||
v2017_9 = ["v2017_8", "libostree-sys/v2017_9"]
|
||||
v2017_10 = ["v2017_9", "libostree-sys/v2017_10"]
|
||||
v2017_11 = ["v2017_10", "libostree-sys/v2017_11"]
|
||||
v2017_12 = ["v2017_11", "libostree-sys/v2017_12"]
|
||||
v2017_13 = ["v2017_12", "libostree-sys/v2017_13"]
|
||||
v2017_15 = ["v2017_13", "libostree-sys/v2017_15"]
|
||||
v2018_2 = ["v2017_15", "libostree-sys/v2018_2"]
|
||||
v2018_3 = ["v2018_2", "libostree-sys/v2018_3"]
|
||||
v2018_5 = ["v2018_3", "libostree-sys/v2018_5"]
|
||||
v2018_6 = ["v2018_5", "libostree-sys/v2018_6"]
|
||||
v2018_7 = ["v2018_6", "libostree-sys/v2018_7"]
|
||||
dox = ["ostree-sys/dox"]
|
||||
v2014_9 = ["ostree-sys/v2014_9"]
|
||||
v2015_7 = ["v2014_9", "ostree-sys/v2015_7"]
|
||||
v2017_3 = ["v2015_7", "ostree-sys/v2017_3"]
|
||||
v2017_4 = ["v2017_3", "ostree-sys/v2017_4"]
|
||||
v2017_6 = ["v2017_4", "ostree-sys/v2017_6"]
|
||||
v2017_7 = ["v2017_6", "ostree-sys/v2017_7"]
|
||||
v2017_8 = ["v2017_7", "ostree-sys/v2017_8"]
|
||||
v2017_9 = ["v2017_8", "ostree-sys/v2017_9"]
|
||||
v2017_10 = ["v2017_9", "ostree-sys/v2017_10"]
|
||||
v2017_11 = ["v2017_10", "ostree-sys/v2017_11"]
|
||||
v2017_12 = ["v2017_11", "ostree-sys/v2017_12"]
|
||||
v2017_13 = ["v2017_12", "ostree-sys/v2017_13"]
|
||||
v2017_15 = ["v2017_13", "ostree-sys/v2017_15"]
|
||||
v2018_2 = ["v2017_15", "ostree-sys/v2018_2"]
|
||||
v2018_3 = ["v2018_2", "ostree-sys/v2018_3"]
|
||||
v2018_5 = ["v2018_3", "ostree-sys/v2018_5"]
|
||||
v2018_6 = ["v2018_5", "ostree-sys/v2018_6"]
|
||||
v2018_7 = ["v2018_6", "ostree-sys/v2018_7"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
all: gir/libostree gir/libostree-sys
|
||||
all: gir/libostree gir/ostree-sys
|
||||
|
||||
.PHONY: update-gir-files
|
||||
|
||||
|
@ -41,7 +41,7 @@ features = ["v2018_7"]
|
||||
```
|
||||
|
||||
## 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.
|
||||
|
||||
### Generated code
|
||||
@ -50,7 +50,7 @@ Most code is generated based on the gir files using the
|
||||
the included Makefile:
|
||||
|
||||
```ShellSession
|
||||
$ make gir/libostree gir/libostree-sys
|
||||
$ make gir/libostree gir/ostree-sys
|
||||
```
|
||||
|
||||
Run the following command to update the bundled gir files:
|
||||
|
@ -1,7 +1,7 @@
|
||||
extern crate gio_sys as gio_ffi;
|
||||
extern crate glib_sys as glib_ffi;
|
||||
extern crate gobject_sys as gobject_ffi;
|
||||
extern crate libostree_sys as ffi;
|
||||
extern crate ostree_sys as ffi;
|
||||
#[macro_use]
|
||||
extern crate glib;
|
||||
extern crate gio;
|
||||
|
@ -36,18 +36,18 @@ v2018_6 = ["v2018_5"]
|
||||
v2018_7 = ["v2018_6"]
|
||||
|
||||
[lib]
|
||||
name = "libostree_sys"
|
||||
name = "ostree_sys"
|
||||
|
||||
[package]
|
||||
authors = ["Felix Krull"]
|
||||
build = "build.rs"
|
||||
categories = ["external-ffi-bindings"]
|
||||
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"]
|
||||
license = "MIT"
|
||||
links = "ostree-1"
|
||||
name = "libostree-sys"
|
||||
name = "ostree-sys"
|
||||
repository = "https://gitlab.com/fkrull/ostree-rs"
|
||||
version = "0.2.0"
|
||||
[package.metadata.docs.rs]
|
||||
|
@ -2,7 +2,7 @@
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate libostree_sys;
|
||||
extern crate ostree_sys;
|
||||
extern crate shell_words;
|
||||
extern crate tempdir;
|
||||
use std::env;
|
||||
@ -11,7 +11,7 @@ use std::path::Path;
|
||||
use std::mem::{align_of, size_of};
|
||||
use std::process::Command;
|
||||
use std::str;
|
||||
use libostree_sys::*;
|
||||
use ostree_sys::*;
|
||||
|
||||
static PACKAGES: &[&str] = &["ostree-1"];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user