mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-11-01 06:18:54 +08:00 
			
		
		
		
	Merge pull request #469 from thomcc/pub-ffi
Make the `libsqlite3_sys as ffi` export `pub`
This commit is contained in:
		| @@ -14,7 +14,6 @@ | |||||||
| //! ## Example | //! ## Example | ||||||
| //! | //! | ||||||
| //! ```rust | //! ```rust | ||||||
| //! extern crate libsqlite3_sys; |  | ||||||
| //! extern crate rusqlite; | //! extern crate rusqlite; | ||||||
| //! | //! | ||||||
| //! use rusqlite::blob::ZeroBlob; | //! use rusqlite::blob::ZeroBlob; | ||||||
|   | |||||||
| @@ -9,7 +9,6 @@ | |||||||
| //! module. | //! module. | ||||||
| //! | //! | ||||||
| //! ```rust | //! ```rust | ||||||
| //! extern crate libsqlite3_sys; |  | ||||||
| //! extern crate rusqlite; | //! extern crate rusqlite; | ||||||
| //! extern crate regex; | //! extern crate regex; | ||||||
| //! | //! | ||||||
|   | |||||||
| @@ -62,7 +62,7 @@ | |||||||
| //! ``` | //! ``` | ||||||
| #![allow(unknown_lints)] | #![allow(unknown_lints)] | ||||||
|  |  | ||||||
| use libsqlite3_sys as ffi; | pub use libsqlite3_sys as ffi; | ||||||
|  |  | ||||||
| #[macro_use] | #[macro_use] | ||||||
| extern crate bitflags; | extern crate bitflags; | ||||||
|   | |||||||
| @@ -1,8 +1,7 @@ | |||||||
| //! Ensure we reject connections when SQLite is in single-threaded mode, as it | //! Ensure we reject connections when SQLite is in single-threaded mode, as it | ||||||
| //! would violate safety if multiple Rust threads tried to use connections. | //! would violate safety if multiple Rust threads tried to use connections. | ||||||
|  |  | ||||||
| use libsqlite3_sys as ffi; | use rusqlite::ffi; | ||||||
|  |  | ||||||
| use rusqlite::Connection; | use rusqlite::Connection; | ||||||
|  |  | ||||||
| #[test] | #[test] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user