Vendor required packages

This allows building a flatpak properly. To update packages, we now
simply need to run `cargo vendor`.
parent 02a7dceb

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "./vendor"
\ No newline at end of file
......@@ -50,7 +50,7 @@ uninstall :
# Build a Flatpak package
flatpak-development: target/release/gDiceRoller
mkdir -p flatpak-development
flatpak-builder flatpak-nightly data/codes.nora.gDiceRoller-development.json
flatpak-builder flatpak-development data/codes.nora.gDiceRoller-development.json
flatpak-release : target/release/gDiceRoller
mkdir -p flatpak
......
......@@ -7,9 +7,7 @@
"org.freedesktop.Sdk.Extension.rust-stable"
],
"command" : "codes.nora.gDiceRoller",
"tags" : [
"development"
],
"tags" : [ "development" ],
"desktop-file-name-suffix" : " ☢️",
"finish-args" : [
"--socket=x11",
......@@ -18,9 +16,7 @@
],
"build-options" : {
"append-path" : "/usr/lib/sdk/rust-stable/bin",
"build-args" : [
"--share=network"
],
"build-args" : [],
"env" : {
"CARGO_HOME" : "/run/build/gRiceRoller/cargo",
"RUSTFLAGS" : "--error-format=short --remap-path-prefix =../",
......
......@@ -16,9 +16,7 @@
],
"build-options" : {
"append-path" : "/usr/lib/sdk/rust-stable/bin",
"build-args" : [
"--share=network"
],
"build-args" : [],
"env" : {
"CARGO_HOME" : "/run/build/gRiceRoller/cargo",
"RUSTFLAGS" : "--error-format=short --remap-path-prefix =../",
......
{"files":{"Cargo.toml":"6e4e43bf2c1a8e2416df263466a26722cb8cd446d9058aac75fec4f4f12e7c72","LICENSE":"cab4b590b1ecd9203034206ad4a6be920dca88d5ae5214f85ff13bd5f8c33bcf","build.rs":"36f9bd106490a9aa130cdbddddf42706e577734faa659ab21fd7c1dced42ec1f","src/lib.rs":"c223ce272c2241e372ed407b4079126e58ff9c6222c890390a28fe33c7c8db0d","tests/abi.rs":"be87f5122683b1574c902b0d5d02e217ea15abdbafd0c3bff5373bafa0bd6df3","tests/constant.c":"a03af9ff33f4597390535e2bf1c02b67b2ee1bc3e399e77a628967d5fe6d3b8c","tests/layout.c":"a9267101806ec9bd3942bda10e53d37957a6c0eddb10d8fe8d7a1e6288b22de9","tests/manual.h":"b7ca419aa3cfa199f715742c0c861e3f6551dc3eb2157a31d4bc0837a79f74a7","versions.txt":"f08543a2e7b828e51e45341579f168d8005037e3a95780a7ee3214e592c2dd38"},"package":"83744274abbcc2242f845a25cf84b9adb5991eaecc8f7c67cffd69ea636f4ff8"}
\ No newline at end of file
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g. crates.io) dependencies
#
# If you believe there's an error in this file please file an
# issue against the rust-lang/cargo repository. If you're
# editing this file be aware that the upstream Cargo.toml
# will likely look very different (and much more reasonable)
[package]
name = "atk-sys"
version = "0.8.0"
authors = ["The Gtk-rs Project Developers"]
build = "build.rs"
links = "atk"
description = "FFI bindings to libatk-1"
homepage = "http://gtk-rs.org/"
keywords = ["atk", "ffi", "gtk-rs", "gnome"]
license = "MIT"
repository = "https://github.com/gtk-rs/sys"
[lib]
name = "atk_sys"
[dependencies.glib-sys]
version = "0.8.0"
[dependencies.gobject-sys]
version = "0.8.0"
[dependencies.libc]
version = "0.2"
[dev-dependencies.shell-words]
version = "0.1.0"
[dev-dependencies.tempdir]
version = "0.3"
[build-dependencies.pkg-config]
version = "0.3.7"
[features]
dox = []
v2_30 = []
The MIT License (MIT)
Copyright (c) 2013-2015, The Gtk-rs Project Developers.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
extern crate pkg_config;
use pkg_config::{Config, Error};
use std::env;
use std::io::prelude::*;
use std::io;
use std::process;
fn main() {
if let Err(s) = find() {
let _ = writeln!(io::stderr(), "{}", s);
process::exit(1);
}
}
fn find() -> Result<(), Error> {
let package_name = "atk";
let shared_libs = ["atk-1.0"];
let version = if cfg!(feature = "v2_30") {
"2.30"
} else {
"2.14"
};
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
println!("cargo:include={}", inc_dir);
}
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
for lib_ in shared_libs.iter() {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
println!("cargo:rustc-link-search=native={}", lib_dir);
return Ok(())
}
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
let hardcode_shared_libs = target.contains("windows");
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}
match config.probe(package_name) {
Ok(library) => {
if let Ok(paths) = std::env::join_paths(library.include_paths) {
println!("cargo:include={}", paths.to_string_lossy());
}
if hardcode_shared_libs {
for lib_ in shared_libs.iter() {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
for path in library.link_paths.iter() {
println!("cargo:rustc-link-search=native={}",
path.to_str().expect("library path doesn't exist"));
}
}
Ok(())
}
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
for lib_ in shared_libs.iter() {
println!("cargo:rustc-link-lib=dylib={}", lib_);
}
Ok(())
}
Err(err) => Err(err),
}
}
This diff is collapsed.
This diff is collapsed.
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#include "manual.h"
#include <stdio.h>
int main() {
printf(_Generic((ABI_CONSTANT_NAME),
char *: "###gir test###%s###gir test###\n",