mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Reference the COPYRIGHT file inline
This commit is contained in:
parent
a3fe488a2d
commit
a11b849d45
11 changed files with 47 additions and 17 deletions
|
@ -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(|| {
|
||||
|
|
|
@ -125,8 +125,10 @@ pub fn finish_parsing_float(raw: &str) -> Result<f64, (&str, FloatErrorKind)> {
|
|||
/// 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;
|
||||
|
|
|
@ -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>(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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<T: Sized>(slice: &[T]) -> usize {
|
||||
std::mem::size_of::<T>() * slice.len()
|
||||
}
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#include <alloca.h>
|
||||
|
||||
// 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) {
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue