From daa5c5e86d9c33006536ec53de5e6d587283e3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20=C5=BDydyk?= Date: Fri, 27 Nov 2026 19:22:34 +0100 Subject: [PATCH] Third-party notices for quoted excerpts; say where Run sends code and how views are counted --- CONTRIBUTING.md | 2 +- THIRD_PARTY_NOTICES | 92 +++++++++++++++++++++++++++++++++++++++++++++ index.html | 4 +- lessons/28-tours.js | 5 ++- 4 files changed, 99 insertions(+), 4 deletions(-) create mode 100644 THIRD_PARTY_NOTICES diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0162928..eafe10c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -67,7 +67,7 @@ LESSONS.push({ diagram: true, // a picture such as a folder tree; nothing to run // Real code from another project instead of a program. rs must be exactly those lines (checked against GitHub); - // py only has to parse, unless you also give out: + // py only has to parse, unless you also give out. Also list it, with its license text, in THIRD_PARTY_NOTICES: excerpt: { repo: 'astral-sh/uv', commit: '', path: 'crates/x/src/lib.rs', from: 10, to: 30 }, }], quiz: [ diff --git a/THIRD_PARTY_NOTICES b/THIRD_PARTY_NOTICES new file mode 100644 index 0000000..d6126dc --- /dev/null +++ b/THIRD_PARTY_NOTICES @@ -0,0 +1,92 @@ +Third-party notices + +Lesson 28 (lessons/28-tours.js) quotes short excerpts from the projects below, +unchanged, each pinned to one commit. Their license notices follow, copied +unchanged from the LICENSE file at that commit. + +-------------------------------------------------------------------------------- +uv - https://github.com/astral-sh/uv +Commit: 57f7f6835992a7403512ce71d32b7cf7a45510dd +Files: crates/uv-normalize/src/lib.rs (lines 26-63), + crates/uv-python-types/src/implementation.rs (lines 106-122) +License: uv is dual-licensed MIT OR Apache-2.0; these excerpts are used under +the MIT license (LICENSE-MIT): + +MIT License + +Copyright (c) 2025 Astral Software Inc. + +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. + +-------------------------------------------------------------------------------- +ruff - https://github.com/astral-sh/ruff +Commit: 0222c19dd8e0c9a927f2e47bf3774a108431da25 +File: crates/ruff_python_stdlib/src/identifiers.rs (lines 54-77) +License: MIT (LICENSE, ruff's own notice): + +MIT License + +Copyright (c) 2022 Charles Marsh + +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. + +-------------------------------------------------------------------------------- +pydantic-core - https://github.com/pydantic/pydantic-core +Commit: 383eb95a19433754c0cecf7025b50c26b6d97a36 +Files: src/input/shared.rs (lines 25-45), + src/recursion_guard.rs (lines 28-58) +License: MIT (LICENSE): + +The MIT License (MIT) + +Copyright (c) 2022 Samuel Colvin + +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. diff --git a/index.html b/index.html index 00b16bf..2230d1b 100644 --- a/index.html +++ b/index.html @@ -42,7 +42,9 @@ Made by Roman Žydyk · Source on GitHub · Report a mistake · - MIT license + MIT license
+ Run sends your code to the Rust Playground (play.rust-lang.org) to compile and run it. + Page views are counted with GoatCounter, without cookies. diff --git a/lessons/28-tours.js b/lessons/28-tours.js index 1927276..fa4e96c 100644 --- a/lessons/28-tours.js +++ b/lessons/28-tours.js @@ -8,13 +8,14 @@ LESSONS.push({ +

The full license texts are in THIRD_PARTY_NOTICES.

Each excerpt is pinned to one commit, and View on GitHub opens exactly those lines, so you can scroll around and see the rest of the file. Next to it is the Python you would write for the same job. You won't know every name, and that's normal in real code: read the shape, use the hover notes, and guess the rest from the names.

`,