Skip to content

Commit

Permalink
Change the licensing for src/source.rs (#55)
Browse files Browse the repository at this point in the history
Changes the licence to the in-file Zero-Clause BSD licence.
  • Loading branch information
Leon authored Jun 22, 2024
1 parent 212d257 commit bf98fc1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mdbook serve --open

## Licence

All code in this repository is dual-licensed under, at your option, either:
Except where noted, below and/or in individual files, all code in this repository is dual-licensed under, at your option, either:

- MIT Licence ([LICENCE-MIT](./LICENCE-MIT) or http://opensource.org/licenses/MIT); or
- Apache 2.0 Licence ([LICENCE-APACHE](./LICENCE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0).
Expand Down
18 changes: 18 additions & 0 deletions stack-core/src/source.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// See the file footer for the licence text.

use core::{fmt, num::NonZeroUsize};
use std::{fs, io, path::Path, sync::Arc};

Expand Down Expand Up @@ -244,3 +246,19 @@ mod test {
Source::new("", source).line(line).map(Into::into)
}
}

// SPDX: 0BSD
//
// Copyright (C) Leon Davis <[email protected]>
// Copyright (C) Shane Vandegrift <[email protected]>
//
// 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.

0 comments on commit bf98fc1

Please sign in to comment.