diff --git a/cli/tests/helpers.rs b/cli/tests/helpers.rs index 27e8ad1044..84dd585411 100644 --- a/cli/tests/helpers.rs +++ b/cli/tests/helpers.rs @@ -23,7 +23,11 @@ pub struct Out { } pub fn path_to_roc_binary() -> PathBuf { - // Adapted from https://github.com/volta-cli/volta/blob/cefdf7436a15af3ce3a38b8fe53bb0cfdb37d3dd/tests/acceptance/support/sandbox.rs#L680 - BSD-2-Clause licensed + // Adapted from https://github.com/volta-cli/volta/blob/cefdf7436a15af3ce3a38b8fe53bb0cfdb37d3dd/tests/acceptance/support/sandbox.rs#L680 + // by the Volta Contributors - license information can be found in + // the COPYRIGHT file in the root directory of this distribution. + // + // Thank you, Volta contributors! let mut path = env::var_os("CARGO_BIN_PATH") .map(PathBuf::from) .or_else(|| { diff --git a/compiler/can/src/num.rs b/compiler/can/src/num.rs index be00a66724..4a423809eb 100644 --- a/compiler/can/src/num.rs +++ b/compiler/can/src/num.rs @@ -125,8 +125,10 @@ pub fn finish_parsing_float(raw: &str) -> Result { /// pulled in so we can give custom error messages /// /// The Rust Project is dual-licensed under either Apache 2.0 or MIT, -/// at the user's choice. Thanks to the Rust project and its contributors! - +/// at the user's choice. License information can be found in +/// the COPYRIGHT file in the root directory of this distribution. +/// +/// Thanks to the Rust project and its contributors! trait FromStrRadixHelper: PartialOrd + Copy { fn min_value() -> Self; fn max_value() -> Self; diff --git a/compiler/can/src/operator.rs b/compiler/can/src/operator.rs index 96ba407aaf..46212b2daf 100644 --- a/compiler/can/src/operator.rs +++ b/compiler/can/src/operator.rs @@ -7,8 +7,10 @@ use roc_parse::ast::Expr::{self, *}; use roc_parse::ast::{AssignedField, Def, WhenBranch}; use roc_region::all::{Located, Region}; -// BinOp precedence logic adapted from Gluon by Markus Westerlind, MIT licensed -// https://github.com/gluon-lang/gluon +// BinOp precedence logic adapted from Gluon by Markus Westerlind +// https://github.com/gluon-lang/gluon - license information can be found in +// the COPYRIGHT file in the root directory of this distribution. +// // Thank you, Markus! fn new_op_call_expr<'a>( diff --git a/editor/src/editor/main.rs b/editor/src/editor/main.rs index 1bedd52eff..5f5e50a1a4 100644 --- a/editor/src/editor/main.rs +++ b/editor/src/editor/main.rs @@ -40,9 +40,9 @@ use winit::{ }; // Inspired by: -// https://github.com/sotrh/learn-wgpu by Benjamin Hansen, licensed under the MIT license -// https://github.com/cloudhead/rgx by Alexis Sellier, licensed under the MIT license - +// https://github.com/sotrh/learn-wgpu by Benjamin Hansen, which is licensed under the MIT license +// https://github.com/cloudhead/rgx by Alexis Sellier, which is licensed under the MIT license +// // See this link to learn wgpu: https://sotrh.github.io/learn-wgpu/ /// The editor is actually launched from the CLI if you pass it zero arguments, diff --git a/editor/src/graphics/lowlevel/buffer.rs b/editor/src/graphics/lowlevel/buffer.rs index b7f8948c8d..539f52301a 100644 --- a/editor/src/graphics/lowlevel/buffer.rs +++ b/editor/src/graphics/lowlevel/buffer.rs @@ -1,5 +1,8 @@ // Adapted from https://github.com/sotrh/learn-wgpu -// by Benjamin Hansen, licensed under the MIT license +// by Benjamin Hansen - license information can be found in the COPYRIGHT +// file in the root directory of this distribution. +// +// Thank you, Benjamin! use super::vertex::Vertex; use crate::graphics::colors::to_slice; use crate::graphics::primitives::rect::Rect; @@ -158,7 +161,10 @@ impl StagingBuffer { } // Taken from https://github.com/sotrh/learn-wgpu -// by Benjamin Hansen, licensed under the MIT license +// by Benjamin Hansen - license information can be found in the COPYRIGHT +// file in the root directory of this distribution. +// +// Thank you, Benjamin! pub fn size_of_slice(slice: &[T]) -> usize { std::mem::size_of::() * slice.len() } diff --git a/editor/src/graphics/lowlevel/vertex.rs b/editor/src/graphics/lowlevel/vertex.rs index 1b6dd40c56..f79a87e05d 100644 --- a/editor/src/graphics/lowlevel/vertex.rs +++ b/editor/src/graphics/lowlevel/vertex.rs @@ -1,5 +1,8 @@ // Taken from https://github.com/sotrh/learn-wgpu -// by Benjamin Hansen, licensed under the MIT license +// by Benjamin Hansen - license information can be found in the COPYRIGHT +// file in the root directory of this distribution. +// +// Thank you, Benjamin! use cgmath::Vector2; #[derive(Copy, Clone)] diff --git a/editor/src/graphics/primitives/text.rs b/editor/src/graphics/primitives/text.rs index d8f3d8752d..5139380ac7 100644 --- a/editor/src/graphics/primitives/text.rs +++ b/editor/src/graphics/primitives/text.rs @@ -1,5 +1,8 @@ // Adapted from https://github.com/sotrh/learn-wgpu -// by Benjamin Hansen, licensed under the MIT license +// by Benjamin Hansen - license information can be found in the COPYRIGHT +// file in the root directory of this distribution. +// +// Thank you, Benjamin! use super::rect::Rect; use crate::graphics::colors; diff --git a/editor/src/ui/text/lines.rs b/editor/src/ui/text/lines.rs index 0de1484727..29bb6bdedd 100644 --- a/editor/src/ui/text/lines.rs +++ b/editor/src/ui/text/lines.rs @@ -1,4 +1,8 @@ -// Adapted from https://github.com/cessen/ropey by Nathan Vegdahl, licensed under the MIT license +// Adapted from https://github.com/cessen/ropey +// by Nathan Vegdahl - license information can be found in the COPYRIGHT +// file in the root directory of this distribution. +// +// Thank you, Nathan! use crate::ui::text::caret_w_select::CaretWSelect; use crate::ui::text::selection::validate_sel_opt; diff --git a/roc_std/build.rs b/roc_std/build.rs index 6625c9c3de..c6109ac0b9 100644 --- a/roc_std/build.rs +++ b/roc_std/build.rs @@ -1,5 +1,7 @@ // Adapted from https://github.com/TheDan64/scoped_alloca -// by Daniel Kolsoi, licensed under the Apache License 2.0 +// by Daniel Kolsoi - license information can be found in +// the COPYRIGHT file in the root directory of this distribution. +// // Thank you, Dan! use std::env; diff --git a/roc_std/src/alloca.c b/roc_std/src/alloca.c index e8bf7ee670..1075962de0 100644 --- a/roc_std/src/alloca.c +++ b/roc_std/src/alloca.c @@ -1,7 +1,9 @@ #include -// From https://github.com/TheDan64/scoped_alloca -// by Daniel Kolsoi, licensed under the Apache License 2.0 +// Adapted from https://github.com/TheDan64/scoped_alloca +// by Daniel Kolsoi - license information can be found in +// the COPYRIGHT file in the root directory of this distribution. +// // Thank you, Dan! void *c_alloca(size_t bytes) { diff --git a/roc_std/src/alloca.rs b/roc_std/src/alloca.rs index ef30a59b44..270fd4ef3d 100644 --- a/roc_std/src/alloca.rs +++ b/roc_std/src/alloca.rs @@ -1,5 +1,7 @@ // Adapted from https://github.com/TheDan64/scoped_alloca -// by Daniel Kolsoi, licensed under the Apache License 2.0 +// by Daniel Kolsoi - license information can be found in +// the COPYRIGHT file in the root directory of this distribution. +// // Thank you, Dan! use libc::{c_void, size_t};