Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 100 additions & 18 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,103 @@
MIT License
Custom License with Entity Exclusion

Copyright (c) 2026 Marko Vejnovic

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.
1. Definitions.

"Software" means the software, documentation, and associated files made
available under this License.

"Derivative Work" means any work that is based on or derived from the
Software, including but not limited to modifications, translations,
adaptations, compilations, and works that incorporate the Software in
whole or in part.

"Excluded Entity" means any entity listed in the Excluded Entities
Schedule below, together with (a) any entity that directly or indirectly
controls, is controlled by, or is under common control with such listed
entity, where "control" means ownership of more than fifty percent (50%)
of the voting securities or equivalent ownership interest; (b) any
successor or assign of such listed entity; and (c) any agent, contractor,
or representative acting on behalf of or for the benefit of such listed
entity.

"You" means the individual or entity exercising rights under this
License. If You are acting on behalf of an entity, "You" includes that
entity.

2. Grant of Rights.

Subject to the terms and conditions of this License, the copyright holder
hereby grants You a perpetual, worldwide, non-exclusive, royalty-free
license to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software and Derivative Works, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:

(a) The above copyright notice and this permission notice (including the
Excluded Entities Schedule) shall be included in all copies or
substantial portions of the Software.

(b) Any Derivative Work distributed in source form must carry prominent
notices stating that You changed the files.

3. Excluded Entities.

Notwithstanding Section 2, NO rights are granted under this License to
any Excluded Entity. Any Excluded Entity is expressly prohibited from
using, copying, modifying, merging, publishing, distributing,
sublicensing, selling, or otherwise exploiting the Software or any
Derivative Work, whether directly or through any intermediary.

For the avoidance of doubt, this prohibition extends to:
(a) internal use by the Excluded Entity;
(b) incorporation of the Software into any product or service offered
by the Excluded Entity;
(c) use by any contractor, consultant, or third party acting on behalf
of, at the direction of, or for the benefit of the Excluded Entity;
(d) any use funded, directed, or commissioned by the Excluded Entity.

Any attempt by an Excluded Entity to exercise rights under this License
is void and constitutes copyright infringement.

4. Patent Grant.

Subject to the terms and conditions of this License (including the
exclusion in Section 3), each contributor to this Software hereby grants
You a perpetual, worldwide, non-exclusive, royalty-free, irrevocable
patent license to make, have made, use, offer to sell, sell, import, and
otherwise transfer the Software, where such license applies only to those
patent claims licensable by such contributor that are necessarily
infringed by their contribution alone or by combination of their
contribution with the Software.

5. Disclaimer of Warranty.

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.

6. Limitation of Liability.

IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS 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.

7. Severability.

If any provision of this License is held to be unenforceable or invalid,
that provision shall be enforced to the maximum extent possible, and the
remaining provisions shall continue in full force and effect.

8. Governing Law.

This License shall be governed by and construed in accordance with the
laws of the jurisdiction in which the copyright holder resides, without
regard to conflict of laws principles.

--- EXCLUDED ENTITIES SCHEDULE ---

The following entities are Excluded Entities as defined in Section 1:

1. Anduril Industries, Inc.
200 changes: 0 additions & 200 deletions LICENSE-APACHE

This file was deleted.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,8 @@ nonzero :: QuectoVm -> Register -> IO (Maybe Int64)

## License

MIT OR Apache-2.0
Custom license (source-available). Based on the MIT license with an entity exclusion clause.
See [LICENSE](LICENSE) for full terms.

**Note:** This software was previously dual-licensed under MIT OR Apache-2.0. Versions prior
to this change remain available under those terms.
2 changes: 1 addition & 1 deletion hsrs-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "hsrs-codegen"
version = "0.0.0-dev"
edition = "2024"
license = "MIT OR Apache-2.0"
license-file = "../LICENSE"
description = "Haskell code generator for hsrs FFI bindings"
repository = "https://github.com/harmont-dev/hsrs"
readme = "../README.md"
Expand Down
Loading
Loading