Dual licence under MIT and (more accurately or) Apache 2.0

totally not just cus it's easier for sprout
This commit is contained in:
2025-11-15 19:12:17 +11:00
parent 46c060f0a7
commit fb3625c0b8
19 changed files with 225 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
/* basic - jaarg example program using parse_easy
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
use jaarg::{Opt, OptHide, Opts, ParseControl, ParseResult};

View File

@@ -1,6 +1,6 @@
/* bin2c - jaarg example application
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
use jaarg::{Opt, Opts, ParseControl, ParseResult};

View File

@@ -1,6 +1,6 @@
/* btreemap - jaarg example program using BTreeMap
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
use jaarg::{alloc::ParseMapResult, Opt, Opts};

View File

@@ -1,6 +1,6 @@
/* jaarg - Argument parser
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
extern crate alloc;

View File

@@ -1,6 +1,6 @@
/* jaarg - Argument parser
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
/// Enum describing the result of parsing arguments, and how the program should behave.

View File

@@ -1,6 +1,6 @@
/* jaarg - Argument parser
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
/// Fully const fn nostd UTF-8 character iterator.

View File

@@ -1,6 +1,6 @@
/* jaarg - Argument parser
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
/// Enough context to show full help text.

View File

@@ -1,6 +1,6 @@
/* jaarg - Argument parser
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
#![no_std]

View File

@@ -1,6 +1,6 @@
/* jaarg - Argument parser
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
#[derive(Debug, Copy, Clone, PartialEq)]

View File

@@ -1,6 +1,6 @@
/* jaarg - Argument parser
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
/// Static structure that contains instructions for parsing command-line arguments.

View File

@@ -1,6 +1,6 @@
/* jaarg - Argument parser
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
#![allow(private_bounds)]

View File

@@ -1,6 +1,6 @@
/* jaarg - Argument parser
* SPDX-FileCopyrightText: (C) 2025 Gay Pizza Specifications
* SPDX-License-Identifier: MIT
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
extern crate std;