From 7230127f260d4e32617347ea4122d360effb0bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Boy=C3=A9?= Date: Sat, 4 Mar 2023 18:06:22 +0100 Subject: [PATCH] Fixed a mistake in copyright disclamers. --- bsv/src/commands/command.rs | 4 ++-- bsv/src/commands/init.rs | 4 ++-- bsv/src/commands/mod.rs | 4 ++-- bsv/src/main.rs | 4 ++-- bsvfs/Cargo.toml | 12 ++++++++++++ bsvfs/src/lib.rs | 0 cas-core/src/cas.rs | 4 ++-- cas-core/src/error.rs | 4 ++-- cas-core/src/lib.rs | 4 ++-- cas-core/src/object_id.rs | 4 ++-- cas-core/src/object_metadata.rs | 4 ++-- cas-core/src/object_type.rs | 4 ++-- cas-core/src/pipeline.rs | 4 ++-- cas-simple/src/cas.rs | 4 ++-- cas-simple/src/lib.rs | 4 ++-- cas-simple/src/utils.rs | 4 ++-- cas-simple/src/wfile.rs | 4 ++-- libbsv/src/config.rs | 4 ++-- libbsv/src/ignore.rs | 4 ++-- libbsv/src/lib.rs | 4 ++-- libbsv/src/path_map.rs | 4 ++-- libbsv/src/permissions.rs | 4 ++-- libbsv/src/repository.rs | 4 ++-- libbsv/src/tree_item.rs | 4 ++-- libbsv/src/tree_walker.rs | 4 ++-- 25 files changed, 58 insertions(+), 46 deletions(-) create mode 100644 bsvfs/Cargo.toml create mode 100644 bsvfs/src/lib.rs diff --git a/bsv/src/commands/command.rs b/bsv/src/commands/command.rs index 20b5bbe..b1ca1ec 100644 --- a/bsv/src/commands/command.rs +++ b/bsv/src/commands/command.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use std::collections::{hash_map, HashMap}; diff --git a/bsv/src/commands/init.rs b/bsv/src/commands/init.rs index d4cb00c..f2434bb 100644 --- a/bsv/src/commands/init.rs +++ b/bsv/src/commands/init.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use std::path::PathBuf; diff --git a/bsv/src/commands/mod.rs b/bsv/src/commands/mod.rs index 5fcf78d..2398970 100644 --- a/bsv/src/commands/mod.rs +++ b/bsv/src/commands/mod.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . pub mod command; diff --git a/bsv/src/main.rs b/bsv/src/main.rs index 1b90ea5..f87d196 100644 --- a/bsv/src/main.rs +++ b/bsv/src/main.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . #[macro_use] diff --git a/bsvfs/Cargo.toml b/bsvfs/Cargo.toml new file mode 100644 index 0000000..5cac903 --- /dev/null +++ b/bsvfs/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "cas-core" +version = "0.1.0" +authors = ["Simon Boyé "] +edition = "2021" +license = "AGPL-3.0-or-later" + +[dependencies] +thiserror = "1.0.25" +camino = { version = "1.0.7" } + +[dev-dependencies] diff --git a/bsvfs/src/lib.rs b/bsvfs/src/lib.rs new file mode 100644 index 0000000..e69de29 diff --git a/cas-core/src/cas.rs b/cas-core/src/cas.rs index 22d9940..f2c1085 100644 --- a/cas-core/src/cas.rs +++ b/cas-core/src/cas.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use camino::Utf8Path; diff --git a/cas-core/src/error.rs b/cas-core/src/error.rs index 4214c07..ef04d84 100644 --- a/cas-core/src/error.rs +++ b/cas-core/src/error.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . // use std::path::Utf8PathBuf; diff --git a/cas-core/src/lib.rs b/cas-core/src/lib.rs index 0710d47..c53577c 100644 --- a/cas-core/src/lib.rs +++ b/cas-core/src/lib.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . //! # cas-core //! diff --git a/cas-core/src/object_id.rs b/cas-core/src/object_id.rs index 52afe93..9f2a712 100644 --- a/cas-core/src/object_id.rs +++ b/cas-core/src/object_id.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use std::fmt; diff --git a/cas-core/src/object_metadata.rs b/cas-core/src/object_metadata.rs index 13c741e..68c3fe1 100644 --- a/cas-core/src/object_metadata.rs +++ b/cas-core/src/object_metadata.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use super::object_type::{ObjectType}; diff --git a/cas-core/src/object_type.rs b/cas-core/src/object_type.rs index deb9434..effa59c 100644 --- a/cas-core/src/object_type.rs +++ b/cas-core/src/object_type.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use super::err; use super::error::*; diff --git a/cas-core/src/pipeline.rs b/cas-core/src/pipeline.rs index b3c1777..bd11826 100644 --- a/cas-core/src/pipeline.rs +++ b/cas-core/src/pipeline.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use digest::DynDigest; diff --git a/cas-simple/src/cas.rs b/cas-simple/src/cas.rs index 4163af3..cef3358 100644 --- a/cas-simple/src/cas.rs +++ b/cas-simple/src/cas.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use std::str::FromStr; diff --git a/cas-simple/src/lib.rs b/cas-simple/src/lib.rs index 6f8e87b..7086404 100644 --- a/cas-simple/src/lib.rs +++ b/cas-simple/src/lib.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . //! # cas-simple //! diff --git a/cas-simple/src/utils.rs b/cas-simple/src/utils.rs index b4af219..7f08daa 100644 --- a/cas-simple/src/utils.rs +++ b/cas-simple/src/utils.rs @@ -6,13 +6,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use digest::DynDigest; diff --git a/cas-simple/src/wfile.rs b/cas-simple/src/wfile.rs index 499a30d..8ceac04 100644 --- a/cas-simple/src/wfile.rs +++ b/cas-simple/src/wfile.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use camino::{Utf8PathBuf}; diff --git a/libbsv/src/config.rs b/libbsv/src/config.rs index 8566db5..9f39a6c 100644 --- a/libbsv/src/config.rs +++ b/libbsv/src/config.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use std::collections::{HashMap}; diff --git a/libbsv/src/ignore.rs b/libbsv/src/ignore.rs index 5244c40..c47d31f 100644 --- a/libbsv/src/ignore.rs +++ b/libbsv/src/ignore.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use camino::{Utf8Path, Utf8PathBuf}; diff --git a/libbsv/src/lib.rs b/libbsv/src/lib.rs index 1e82961..0a1207c 100644 --- a/libbsv/src/lib.rs +++ b/libbsv/src/lib.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . extern crate toml; diff --git a/libbsv/src/path_map.rs b/libbsv/src/path_map.rs index db4f91c..d22b4d9 100644 --- a/libbsv/src/path_map.rs +++ b/libbsv/src/path_map.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use camino::{Utf8Path, Utf8PathBuf}; diff --git a/libbsv/src/permissions.rs b/libbsv/src/permissions.rs index acc01be..cb6adad 100644 --- a/libbsv/src/permissions.rs +++ b/libbsv/src/permissions.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use cas_core::{err, Error, Result}; diff --git a/libbsv/src/repository.rs b/libbsv/src/repository.rs index eac6a90..b4d597d 100644 --- a/libbsv/src/repository.rs +++ b/libbsv/src/repository.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use camino::{Utf8Path, Utf8PathBuf}; diff --git a/libbsv/src/tree_item.rs b/libbsv/src/tree_item.rs index 58b3ff5..e958368 100644 --- a/libbsv/src/tree_item.rs +++ b/libbsv/src/tree_item.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use std::time::{Duration, SystemTime, UNIX_EPOCH}; diff --git a/libbsv/src/tree_walker.rs b/libbsv/src/tree_walker.rs index 9c52e85..6c28ed6 100644 --- a/libbsv/src/tree_walker.rs +++ b/libbsv/src/tree_walker.rs @@ -5,13 +5,13 @@ // Software Foundation, either version 3 of the License, or (at your option) // any later version. // -// cdb is distributed in the hope that it will be useful, but WITHOUT ANY +// bsv is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for // more details. // // You should have received a copy of the Affero GNU General Public License -// along with cdb. If not, see . +// along with bsv. If not, see . use std::iter::Peekable;