From 74db4f3ffacdbfd0bc86c95225f4aead1cdd830a Mon Sep 17 00:00:00 2001 From: gwenn Date: Mon, 29 Aug 2016 20:22:58 +0200 Subject: [PATCH 1/2] Update doc links to docs.rs --- Cargo.toml | 3 ++- README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c5a156b..cbe5aa3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "0.7.3" authors = ["John Gallagher "] description = "Ergonomic wrapper for SQLite" repository = "https://github.com/jgallagher/rusqlite" -documentation = "http://jgallagher.github.io/rusqlite/rusqlite/index.html" +documentation = "http://docs.rs/rusqlite/" readme = "README.md" keywords = ["sqlite", "database", "ffi"] license = "MIT" @@ -13,6 +13,7 @@ license = "MIT" name = "rusqlite" [features] +default = ["backup", "blob", "chrono", "functions", "load_extension", "serde_json", "trace"] load_extension = [] backup = [] blob = [] diff --git a/README.md b/README.md index 2f8d23c..b176354 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Rusqlite is an ergonomic wrapper for using SQLite from Rust. It attempts to expose an interface similar to [rust-postgres](https://github.com/sfackler/rust-postgres). View the full -[API documentation](http://jgallagher.github.io/rusqlite/rusqlite/index.html). +[API documentation](http://docs.rs/rusqlite/). ```rust extern crate rusqlite; From 83fb80d346a8247ba20486e5e24e49c5b5be867d Mon Sep 17 00:00:00 2001 From: gwenn Date: Fri, 9 Jun 2017 20:04:28 +0200 Subject: [PATCH 2/2] Docs.rs now supports building non-default features --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c8d440c..b8e745c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,6 @@ appveyor = { repository = "jgallagher/rusqlite" } name = "rusqlite" [features] -default = ["backup", "blob", "chrono", "functions", "load_extension", "serde_json", "trace"] load_extension = [] backup = ["libsqlite3-sys/min_sqlite_version_3_6_11"] blob = ["libsqlite3-sys/min_sqlite_version_3_7_4"] @@ -50,3 +49,9 @@ harness = false [[test]] name = "deny_single_threaded_sqlite_config" + +[package.metadata.docs.rs] +features = [ "backup", "blob", "chrono", "functions", "load_extension", "serde_json", "trace" ] +all-features = false +no-default-features = true +default-target = "x86_64-unknown-linux-gnu"