Skip to content

ADR 0014 dual mit apache licence

Karthik P edited this page Oct 31, 2026 · 1 revision

ADR-0014: Dual MIT / Apache-2.0 licence

fiscalclock is licensed under either the MIT licence or the Apache License 2.0, at the user's option, so that closed products can embed it.

Last reviewed: 31 Oct 2026

Status

Accepted on 31 Oct 2026. Decided by the research documents: the research proposal ("Adoption and positioning"). Applied in 0.1.0.

Context

The proposal wants fiscalclock to become the default fiscal calendar engine, including inside commercial reporting tools and BI products. It describes dual MIT / Apache-2.0 as "the Rust norm"; the research documents give no source for that claim, so it is unverified. It contrasts this with GPL alternatives such as retailcalendar, listed as GPL-3.0 on PyPI, which it says cannot be embedded in closed products the same way.

Decision drivers

  • Allow embedding in closed-source products.
  • Familiar terms for Rust, Python and JavaScript users.
  • Allow contributions under clear terms.

Considered options

Option 1: MIT only

Pros:

  • Short and widely understood.

Cons:

  • No patent grant: the text of LICENSE-MIT does not mention patents.

Option 2: Apache-2.0 only

Pros:

Cons:

  • Users who want MIT's shorter terms have no choice. The research documents do not compare the two licences further.

Option 3: Dual MIT / Apache-2.0, at the user's option (chosen)

Pros:

  • Users pick the terms that suit them, including the Apache-2.0 patent grant when they want it.

Cons:

  • Two licence files to keep in every package.

Option 4: A copyleft licence (GPL-3.0 or LGPL)

Pros:

  • Keeps derivative work open.

Cons:

  • Blocks or complicates embedding in closed products, against the adoption goal.

Decision

Option 3. As applied in 0.1.0:

Consequences

Good:

  • Closed and open projects can embed the library.

Bad:

  • Contributions must be acceptable under both licences. CONTRIBUTING.md states that a contribution is dual-licensed under both, as described in section 5 of the Apache-2.0 licence.
  • Changing the licence later needs an ADR, and may need contributors' agreement; the research documents do not analyse this.

Links

Clone this wiki locally