diff --git a/Cargo.toml b/Cargo.toml index fb2fc43..81de0c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "pangaea-rs" +name = "pangaea" version = "0.1.0" edition = "2021" authors = ["Niklas Frondorf "] @@ -8,6 +8,7 @@ license-file = "LICENSE" description = "A rust module to to access data from pangaea.de" repository = "https://gitlab.dlr.de/sc/ivs-open/pangaea-rs/" homepage = "https://gitlab.dlr.de/sc/ivs-open/pangaea-rs/" +include = ["src", "Cargo.toml", "README.md", "LICENSE"] [dependencies] @@ -27,4 +28,4 @@ tokio = { version = "1.35.1", features = ["full"] } [patch.crates-io] -elasticsearch = { git = "https://github.com/0x6e66/elasticsearch-rs.git", branch = "version-5.6-compatibility"} \ No newline at end of file +elasticsearch = { git = "https://github.com/0x6e66/elasticsearch-rs.git", branch = "version-5.6-compatibility", version = "8.6.0-alpha.1"} \ No newline at end of file diff --git a/examples/download_data.rs b/examples/download_data.rs index 0189b45..7b64666 100644 --- a/examples/download_data.rs +++ b/examples/download_data.rs @@ -1,4 +1,4 @@ -use pangaea_rs::download_data::download_data_by_id; +use pangaea::download_data::download_data_by_id; #[tokio::main] async fn main() { diff --git a/examples/elastic_doc.rs b/examples/elastic_doc.rs index 0bc00df..0b0ba08 100644 --- a/examples/elastic_doc.rs +++ b/examples/elastic_doc.rs @@ -1,6 +1,6 @@ use std::{fs::File, io::Write}; -use pangaea_rs::elastic::elastic_doc; +use pangaea::elastic::elastic_doc; #[tokio::main] pub async fn main() { diff --git a/examples/elastic_search.rs b/examples/elastic_search.rs index c1c88f6..4c9352a 100644 --- a/examples/elastic_search.rs +++ b/examples/elastic_search.rs @@ -1,6 +1,6 @@ use std::{fs::File, io::Write}; -use pangaea_rs::elastic::elastic_search; +use pangaea::elastic::elastic_search; #[tokio::main] pub async fn main() { diff --git a/src/lib.rs b/src/lib.rs index e0d82c7..a60d480 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ //! ## Get metadata for a specific PANGAEA dataset //! ``` //! use std::{fs::File, io::Write}; -//! use pangaea_rs::elastic::elastic_doc; +//! use pangaea::elastic::elastic_doc; //! //! #[tokio::main] //! pub async fn main() { @@ -23,7 +23,7 @@ //! ## Search for multiple datasets //! ``` //! use std::{fs::File, io::Write}; -//! use pangaea_rs::elastic::elastic_search; +//! use pangaea::elastic::elastic_search; //! //! #[tokio::main] //! pub async fn main() { @@ -45,7 +45,7 @@ //! //! ## Download the actual data associated with the dataset //! ``` -//! use pangaea_rs::download_data::download_data_by_id; +//! use pangaea::download_data::download_data_by_id; //! //! #[tokio::main] //! async fn main() { diff --git a/src/types.rs b/src/types.rs index f7e69db..a2db147 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,4 +1,4 @@ -//! Generated with [xgen](https://github.com/xuri/xgen) from the [PANGAEA metadata scheme](https://ws.pangaea.de/schemas/pangaea/MetaData.xsd) and modified afterwards +//! Generated with [xgen](https://github.com/xuri/xgen) from the [PANGAEA metadata scheme](https://ws.pangaea.de/schemas/pangaea/MetaData.xsd) and modified afterwards use serde_derive::{Deserialize, Serialize}; use yaserde_derive::{YaDeserialize, YaSerialize};