File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 3434//!
3535//! ### Synchronous API
3636//! ```no_run
37+ //! #[cfg(feature = "blocking")] {
3738//! use postgresql_archive::LATEST;
3839//! use postgresql_archive::blocking::{extract, get_archive};
3940//!
4041//! let (archive_version, archive, hash) = get_archive(&LATEST).unwrap();
4142//! let out_dir = std::env::temp_dir();
4243//! let result = extract(&archive, &out_dir).unwrap();
44+ //! }
4345//! ```
4446//!
4547//! ## Feature flags
Original file line number Diff line number Diff line change 4242//!
4343//! ### Synchronous API
4444//! ```no_run
45+ //! #[cfg(feature = "blocking")] {
4546//! use postgresql_embedded::blocking::PostgreSQL;
4647//!
4748//! let mut postgresql = PostgreSQL::default();
5455//! postgresql.drop_database(database_name).unwrap();
5556//!
5657//! postgresql.stop().unwrap();
58+ //! }
5759//! ```
5860//!
5961//! ## Information
You can’t perform that action at this time.
0 commit comments