commit fce63f0bf7d0f88b471ca8a32d46d91fffe88128 Author: Ralf Zerres Date: Mon Nov 18 21:38:23 2019 +0100 advotracker_database * initial checkin Signed-off-by: Ralf Zerres diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..37ff7fd --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,34 @@ +[package] +name = "advotracker_database" +version = "0.1.0" +authors = ["Ralf Zerres "] +description = "Database implementation used by advotracker_backend\n" +readme = "README.md" +license = "(0BSD OR MIT)" +edition = "2018" +#build = "build.rs" + +[profile.dev] +rpath = true + +[lib] +name = "advotracker_db" +path = "src/lib.rs" +crate-type = ["dylib"] + +[[bin]] +name = "new-role" +path = "src/bin/new-role.rs" +advotracker_db = { Path="." } + +[dependencies] +lazy_static = "1.0" + +bcrypt = { version = "0.4.0" } +chrono = { version = "0.4.9", features = [ "serde" ] } +diesel = { version = "1.4", features = [ "sqlite", "chrono" ] } +dotenv = { version = "0.15.0" } +ldap3 = { version = "0.6" } +serde = { version = "1.0", features = [ "derive" ] } +serde_derive = { version = "1.0" } +serde_json = { version = "1.0" } diff --git a/LICENSE-0BSD b/LICENSE-0BSD new file mode 100644 index 0000000..ae1aa23 --- /dev/null +++ b/LICENSE-0BSD @@ -0,0 +1,12 @@ +Copyright (C) 2019 by Ralf Zerres + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..107a485 --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,19 @@ +Copyright (c) 2019 Ralf Zerres + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next +paragraph) shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/LICENSE.spdx b/LICENSE.spdx new file mode 100644 index 0000000..a47a78d --- /dev/null +++ b/LICENSE.spdx @@ -0,0 +1,6 @@ +SPDXVersion: SPDX-2.1 +DataLicense: CC0-1.0 +PackageName: advotracker +PackageOriginator: Ralf Zerres +PackageHomePage: https://github.com/rzerres/advotracker/ +PackageLicenseDeclared: MIT, 0BSD \ No newline at end of file