Skip to main content

redshift_iam/
lib.rs

1// inspired by github.com/aws/amazon-redshift-python-driver
2// provides saml and IAM temp credential login
3
4#[doc(hidden)]
5pub mod iam_provider;
6#[doc(hidden)]
7pub mod redshift;
8pub mod saml_provider;
9
10pub(crate) mod re {
11    use regex::Regex;
12
13    pub fn compile(pattern: &str) -> Regex {
14        Regex::new(pattern).unwrap()
15    }
16}
17
18// Re-export public API at crate root so structs and traits appear at the
19// top level in docs and can be imported as `redshift_iam::PingCredentialsProvider`.
20pub use iam_provider::IamProvider;
21pub use redshift::Redshift;
22pub use saml_provider::{PingCredentialsProvider, SamlProvider};
23
24#[doc(hidden)]
25pub mod prelude {
26    pub use crate::iam_provider::IamProvider;
27    pub use crate::redshift::Redshift;
28    pub use crate::saml_provider::PingCredentialsProvider;
29}