Skip to content

Commit

Permalink
switch licence from AGPL to MIT
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide committed Jan 21, 2024
1 parent 37d8e66 commit 2f640e0
Show file tree
Hide file tree
Showing 11 changed files with 171 additions and 872 deletions.
661 changes: 0 additions & 661 deletions COPYING

This file was deleted.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/nodit"
readme = "README.md"
homepage = "https://github.com/ripytide/nodit"
repository = "https://github.com/ripytide/nodit"
license = "AGPL-3.0-or-later"
license = "MIT"
keywords = ["data-structures", "map", "data", "library"]
categories = ["data-structures"]

Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022-2024 James Forster

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 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.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# nodit

[![License](https://img.shields.io/github/license/ripytide/nodit)](https://www.gnu.org/licenses/agpl-3.0.en.html)
![License](https://img.shields.io/github/license/ripytide/nodit)
[![Docs](https://docs.rs/nodit/badge.svg)](https://docs.rs/nodit)
[![Maintained](https://img.shields.io/maintenance/yes/2024)](https://github.com/ripytide)
[![Crates.io](https://img.shields.io/crates/v/nodit)](https://crates.io/crates/nodit)
Expand Down
19 changes: 0 additions & 19 deletions src/discrete_finite.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*
Copyright 2022,2023 James Forster
This file is part of nodit.
nodit is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
nodit 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 GNU Affero General Public License
along with nodit. If not, see <https://www.gnu.org/licenses/>.
*/

//! A module containing the [`DiscreteFinite`] trait and trait impls for the
//! primitive integer datatypes.
Expand Down
19 changes: 0 additions & 19 deletions src/interval.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*
Copyright 2022,2023 James Forster
This file is part of nodit.
nodit is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
nodit 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 GNU Affero General Public License
along with nodit. If not, see <https://www.gnu.org/licenses/>.
*/

//! A module containing [`Interval`] and [`InclusiveInterval`].
//!
//! The constructors are not associated functions as then you must write
Expand Down
19 changes: 0 additions & 19 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*
Copyright 2022,2023 James Forster
This file is part of nodit.
nodit is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
nodit 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 GNU Affero General Public License
along with nodit. If not, see <https://www.gnu.org/licenses/>.
*/

//! This crate provides [`NoditMap`] and [`NoditSet`], Non-Overlapping Discrete
//! Interval Tree data-structures, which are based off [`BTreeMap`].
//!
Expand Down
19 changes: 0 additions & 19 deletions src/nodit/map.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*
Copyright 2022,2023 James Forster
This file is part of nodit.
nodit is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
nodit 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 GNU Affero General Public License
along with nodit. If not, see <https://www.gnu.org/licenses/>.
*/

//! A module containing [`NoditMap`].
use alloc::vec::Vec;
Expand Down
19 changes: 0 additions & 19 deletions src/nodit/set.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*
Copyright 2022,2023 James Forster
This file is part of nodit.
nodit is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
nodit 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 GNU Affero General Public License
along with nodit. If not, see <https://www.gnu.org/licenses/>.
*/

//! A module containing [`NoditSet`].
//!
//! Since [`NoditSet`] is just a wrapper around
Expand Down
20 changes: 1 addition & 19 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*
Copyright 2022,2023 James Forster
This file is part of nodit.
nodit is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
nodit 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 GNU Affero General Public License
along with nodit. If not, see <https://www.gnu.org/licenses/>.
*/

use core::cmp::Ordering;

use crate::{InclusiveInterval, Interval, IntervalType, PointType};
Expand Down Expand Up @@ -209,6 +190,7 @@ where
}
}
//todo upstream usages of this from zodit to nodit and other relevant places
//todo replace entry with key_value to follow std
pub(crate) fn exclusive_comp_generator<I, K>(
point: I,
extraneous_result: Ordering,
Expand Down
Loading

0 comments on commit 2f640e0

Please sign in to comment.