Formatting scheme for Linebender projects

Code files should start with a copypright notice composed of two comments following this format:

// Copyright 2024 the XXXX Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

The year should be the file's creation year. "XXXX" should be the project's name. The license depends on the project and the file type, but is usually "either Apache 2.0 or MIT License, whichever is least restrictive". Shaders are usually licensed under the former two licenses OR the Unlicense.

Rust

Most Linebender projects files are written in Rust. For those files, the formatting produced by rustfmt is required.

Markdown

In Markdown files, every paragraph should have one line per sentence. This makes git diff easier to read. [1] [2]