Reference the COPYRIGHT file inline

This commit is contained in:
Richard Feldman 2021-04-18 17:02:10 -04:00
parent a3fe488a2d
commit a11b849d45
11 changed files with 47 additions and 17 deletions

View file

@ -23,7 +23,11 @@ pub struct Out {
} }
pub fn path_to_roc_binary() -> PathBuf { 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") let mut path = env::var_os("CARGO_BIN_PATH")
.map(PathBuf::from) .map(PathBuf::from)
.or_else(|| { .or_else(|| {

View file

@ -125,8 +125,10 @@ pub fn finish_parsing_float(raw: &str) -> Result<f64, (&str, FloatErrorKind)> {
/// pulled in so we can give custom error messages /// pulled in so we can give custom error messages
/// ///
/// The Rust Project is dual-licensed under either Apache 2.0 or MIT, /// 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 { trait FromStrRadixHelper: PartialOrd + Copy {
fn min_value() -> Self; fn min_value() -> Self;
fn max_value() -> Self; fn max_value() -> Self;

View file

@ -7,8 +7,10 @@ use roc_parse::ast::Expr::{self, *};
use roc_parse::ast::{AssignedField, Def, WhenBranch}; use roc_parse::ast::{AssignedField, Def, WhenBranch};
use roc_region::all::{Located, Region}; use roc_region::all::{Located, Region};
// BinOp precedence logic adapted from Gluon by Markus Westerlind, MIT licensed // BinOp precedence logic adapted from Gluon by Markus Westerlind
// https://github.com/gluon-lang/gluon // 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! // Thank you, Markus!
fn new_op_call_expr<'a>( fn new_op_call_expr<'a>(

View file

@ -40,9 +40,9 @@ use winit::{
}; };
// Inspired by: // Inspired by:
// https://github.com/sotrh/learn-wgpu by Benjamin Hansen, 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, 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/ // 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, /// The editor is actually launched from the CLI if you pass it zero arguments,

View file

@ -1,5 +1,8 @@
// Adapted from https://github.com/sotrh/learn-wgpu // 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 super::vertex::Vertex;
use crate::graphics::colors::to_slice; use crate::graphics::colors::to_slice;
use crate::graphics::primitives::rect::Rect; use crate::graphics::primitives::rect::Rect;
@ -158,7 +161,10 @@ impl StagingBuffer {
} }
// Taken from https://github.com/sotrh/learn-wgpu // 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<T: Sized>(slice: &[T]) -> usize { pub fn size_of_slice<T: Sized>(slice: &[T]) -> usize {
std::mem::size_of::<T>() * slice.len() std::mem::size_of::<T>() * slice.len()
} }

View file

@ -1,5 +1,8 @@
// Taken from https://github.com/sotrh/learn-wgpu // 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; use cgmath::Vector2;
#[derive(Copy, Clone)] #[derive(Copy, Clone)]

View file

@ -1,5 +1,8 @@
// Adapted from https://github.com/sotrh/learn-wgpu // 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 super::rect::Rect;
use crate::graphics::colors; use crate::graphics::colors;

View file

@ -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::caret_w_select::CaretWSelect;
use crate::ui::text::selection::validate_sel_opt; use crate::ui::text::selection::validate_sel_opt;

View file

@ -1,5 +1,7 @@
// Adapted from https://github.com/TheDan64/scoped_alloca // 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! // Thank you, Dan!
use std::env; use std::env;

View file

@ -1,7 +1,9 @@
#include <alloca.h> #include <alloca.h>
// From https://github.com/TheDan64/scoped_alloca // 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! // Thank you, Dan!
void *c_alloca(size_t bytes) { void *c_alloca(size_t bytes) {

View file

@ -1,5 +1,7 @@
// Adapted from https://github.com/TheDan64/scoped_alloca // 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! // Thank you, Dan!
use libc::{c_void, size_t}; use libc::{c_void, size_t};