11# PostgreSQL Archive
22
33[ ![ ci] ( https://github.com/theseus-rs/postgresql-embedded/actions/workflows/ci.yml/badge.svg?branch=main )] ( https://github.com/theseus-rs/postgresql-embedded/actions/workflows/ci.yml )
4- [ ![ Latest version] ( https://img.shields.io/crates/v/postgresql_embedded .svg )] ( https://crates.io/crates/postgresql_embedded )
5- [ ![ Documentation] ( https://docs.rs/postgresql_embedded /badge.svg )] ( https://docs.rs/postgresql_embedded )
6- [ ![ License] ( https://img.shields.io/crates/p/postgresql_embedded.svg )] ( https://github.com/theseus-rs/postgresql_embedded #license )
4+ [ ![ Latest version] ( https://img.shields.io/crates/v/postgresql_archive .svg )] ( https://crates.io/crates/postgresql_embedded )
5+ [ ![ Documentation] ( https://docs.rs/postgresql_archive /badge.svg )] ( https://docs.rs/postgresql_embedded )
6+ [ ![ License] ( https://img.shields.io/crates/l/postgresql_archive? )] ( https://github.com/theseus-rs/postgresql-embedded/tree/main/postgresql_archive #license )
77[ ![ Semantic Versioning] ( https://img.shields.io/badge/%E2%9A%99%EF%B8%8F_SemVer-2.0.0-blue )] ( https://semver.org/spec/v2.0.0.html )
88
9- ---
10-
119A library for downloading and extracting PostgreSQL archives from
1210[ theseus-rs/postgresql-binaries] ( https://github.com/theseus-rs/postgresql-binaries ) .
1311
1412## Examples
1513
1614### Asynchronous API
17- ** Note** : The following example requires the ` tokio ` runtime.
1815
1916``` rust
2017use postgresql_archive :: {extract, get_archive, LATEST };
@@ -23,7 +20,7 @@ use postgresql_archive::{extract, get_archive, LATEST};
2320async fn main () {
2421 let (archive_version , archive , hash ) = get_archive (& LATEST ). await . unwrap ();
2522 let out_dir = std :: env :: temp_dir ();
26- let result = extract (& archive , & out_dir ). await ;
23+ let result = extract (& archive , & out_dir ). await . unwrap () ;
2724}
2825```
2926
@@ -35,7 +32,7 @@ use postgresql_archive::blocking::{extract, get_archive};
3532fn main () {
3633 let (archive_version , archive , hash ) = get_archive (& LATEST ). unwrap ();
3734 let out_dir = std :: env :: temp_dir ();
38- let result = extract (& archive , & out_dir );
35+ let result = extract (& archive , & out_dir ). unwrap () ;
3936}
4037```
4138
@@ -46,41 +43,41 @@ uses.
4643
4744The following features are available:
4845
49- Name | Description | Default?
50- ---|---|---
51- ` blocking ` | Enables the blocking API | No
46+ | Name | Description | Default? |
47+ | ---| ---| ---|
48+ | ` blocking ` | Enables the blocking API | No |
5249
5350## Supported platforms
5451
5552` postgresql_archive ` supports all platforms provided by [ theseus-rs/postgresql-binaries] ( https://github.com/theseus-rs/postgresql-binaries ) .
5653
5754Currently supported platforms are:
5855
59- OS | [ Target] ( https://doc.rust-lang.org/nightly/rustc/platform-support.html )
60- ---|---
61- Linux | aarch64-unknown-linux-gnu
62- Linux | aarch64-unknown-linux-musl
63- Linux | arm-unknown-linux-gnueabi
64- Linux | arm-unknown-linux-gnueabihf
65- Linux | arm-unknown-linux-musleabi
66- Linux | arm-unknown-linux-musleabihf
67- Linux | armv5te-unknown-linux-gnueabi
68- Linux | armv7-unknown-linux-gnueabihf
69- Linux | armv7-unknown-linux-musleabihf
70- Linux | i586-unknown-linux-gnu
71- Linux | i586-unknown-linux-musl
72- Linux | i686-unknown-linux-gnu
73- Linux | i686-unknown-linux-musl
74- Linux | mips64-unknown-linux-gnuabi64
75- Linux | powerpc64le-unknown-linux-gnu
76- Linux | powerpc64le-unknown-linux-musl
77- Linux | s390x-unknown-linux-gnu
78- Linux | s390x-unknown-linux-musl
79- Linux | x86_64-unknown-linux-gnu
80- Linux | x86_64-unknown-linux-musl
81- MacOS | aarch64-apple-darwin
82- MacOS | x86_64-apple-darwin
83- Windows | x86_64-pc-windows-msvc
56+ | OS | [ Target] ( https://doc.rust-lang.org/nightly/rustc/platform-support.html ) |
57+ | ---| ---|
58+ | Linux | aarch64-unknown-linux-gnu |
59+ | Linux | aarch64-unknown-linux-musl |
60+ | Linux | arm-unknown-linux-gnueabi |
61+ | Linux | arm-unknown-linux-gnueabihf |
62+ | Linux | arm-unknown-linux-musleabi |
63+ | Linux | arm-unknown-linux-musleabihf |
64+ | Linux | armv5te-unknown-linux-gnueabi |
65+ | Linux | armv7-unknown-linux-gnueabihf |
66+ | Linux | armv7-unknown-linux-musleabihf |
67+ | Linux | i586-unknown-linux-gnu |
68+ | Linux | i586-unknown-linux-musl |
69+ | Linux | i686-unknown-linux-gnu |
70+ | Linux | i686-unknown-linux-musl |
71+ | Linux | mips64-unknown-linux-gnuabi64 |
72+ | Linux | powerpc64le-unknown-linux-gnu |
73+ | Linux | powerpc64le-unknown-linux-musl |
74+ | Linux | s390x-unknown-linux-gnu |
75+ | Linux | s390x-unknown-linux-musl |
76+ | Linux | x86_64-unknown-linux-gnu |
77+ | Linux | x86_64-unknown-linux-musl |
78+ | MacOS | aarch64-apple-darwin |
79+ | MacOS | x86_64-apple-darwin |
80+ | Windows | x86_64-pc-windows-msvc |
8481
8582## Safety
8683
0 commit comments