Skip to content

Commit f51f5d4

Browse files
committed
refactor: rename nomemorypack build to lean to match rest of stack
+semver: breaking
1 parent 981e8d2 commit f51f5d4

8 files changed

Lines changed: 32 additions & 18 deletions

File tree

.assets/scripts/set-version-and-build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Ensure-GitVersion-Environment
1212
$solutionName = Split-Path $solutionDir -Leaf
1313

1414
# Build and package for each release configuration
15-
$configurations = @("Release", "ReleaseNoMemoryPack")
15+
$configurations = @("Release", "ReleaseLean")
1616

1717
foreach ($config in $configurations) {
1818
# Build the project with the current configuration
@@ -22,7 +22,7 @@ foreach ($config in $configurations) {
2222
$releaseDir = Join-Path $solutionDir "src\$solutionName\bin\$config"
2323

2424
# Determine archive label suffix (lowercase, hyphen-separated)
25-
$configLabel = $config.ToLower() -replace "release", "release" # keeps "release" / "releasenomemorypack"
25+
$configLabel = $config.ToLower() -replace "release", "release" # keeps "release" / "releaselean"
2626

2727
if (-not (Test-Path $releaseDir)) {
2828
Write-Warning "Release directory not found for configuration '$config': $releaseDir"

.github/workflows/publish-nuget.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ jobs:
137137
138138
expected_ids=(
139139
"FixedMathSharp"
140-
"FixedMathSharp.NoMemoryPack"
140+
"FixedMathSharp.Lean",
141+
"FixedMathSharp.FluentAssertions",
142+
"FixedMathSharp.FluentAssertions.Lean"
141143
)
142144
143145
for package_id in "${expected_ids[@]}"; do

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- Target frameworks are configured in the respective `.csproj` files; `net8.0` is the primary TFM.
1414
- There are two release build configurations:
1515
- `Release` — standard release build with MemoryPack support.
16-
- `ReleaseNoMemoryPack` — release build with MemoryPack excluded.
16+
- `ReleaseLean` — release build with MemoryPack excluded.
1717
- Typical local workflow:
1818
- `dotnet restore`
1919
- `dotnet build --configuration Debug --no-restore`

FixedMathSharp.slnx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Configurations>
33
<BuildType Name="Debug" />
44
<BuildType Name="Release" />
5-
<BuildType Name="ReleaseNoMemoryPack" />
5+
<BuildType Name="ReleaseLean" />
66
</Configurations>
77
<Folder Name="/Solution Items/">
88
<File Path=".editorconfig" />

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Built for simulations, games, and physics-heavy code that needs reliable results
2121
- **Spatial helpers:** `BoundingBox`, `BoundingSphere`, and `BoundingArea` for lightweight bounds checks.
2222
- **Shared math utilities:** Common math and trigonometry helpers via `FixedMath` and `FixedTrigonometry`.
2323
- **Deterministic RNG:** `DeterministicRandom` for repeatable procedural generation and simulations.
24-
- **Flexible packaging:** Use the default package with `MemoryPack`, or the `NoMemoryPack` package when you want the same API without that dependency.
24+
- **Flexible packaging:** Use the default package with `MemoryPack`, or the `Lean` package when you want the same API without that dependency.
2525
- **Broad .NET compatibility:** Targets modern .NET while remaining friendly to engine and tooling workflows.
2626

2727
---
@@ -41,7 +41,7 @@ Choose the package that fits your runtime:
4141
| Package | Best for | Install |
4242
| --- | --- | --- |
4343
| `FixedMathSharp` | Most .NET applications. Includes built-in `MemoryPack` support. | `dotnet add package FixedMathSharp` |
44-
| `FixedMathSharp.NoMemoryPack` | Projects that want the same math API without a `MemoryPack` dependency, including custom serializer setups and Burst AOT-sensitive workflows. | `dotnet add package FixedMathSharp.NoMemoryPack` |
44+
| `FixedMathSharp.Lean` | Projects that want the same math API without a `MemoryPack` dependency, including custom serializer setups and Burst AOT-sensitive workflows. | `dotnet add package FixedMathSharp.Lean` |
4545

4646
If you're using `FluentAssertions` in your test project, the companion assertions package is available here:
4747
[FixedMathSharp.FluentAssertions](https://www.nuget.org/packages/FixedMathSharp.FluentAssertions)
@@ -65,17 +65,17 @@ The published NuGet packages map directly to the source-build configurations bel
6565
If you build from source, the repository also provides matching release configurations:
6666

6767
- `Release` builds the standard `FixedMathSharp` package and archives.
68-
- `ReleaseNoMemoryPack` builds the `FixedMathSharp.NoMemoryPack` package and archives.
68+
- `ReleaseLean` builds the `FixedMathSharp.Lean` package and archives.
6969

70-
If you use Unity Burst AOT, prefer the `NoMemoryPack` variant.
70+
If you use Unity Burst AOT, prefer the `Lean` variant.
7171

7272
### Unity Integration
7373

7474
FixedMathSharp is maintained as a separate Unity package. For Unity-specific implementations, refer to:
7575

7676
🔗 [FixedMathSharp-Unity Repository](https://github.com/mrdav30/FixedMathSharp-Unity).
7777

78-
If you are evaluating this .NET package for Unity-adjacent tooling using Burst AOT, prefer `FixedMathSharp.NoMemoryPack`.
78+
If you are evaluating this .NET package for Unity-adjacent tooling using Burst AOT, prefer `FixedMathSharp.Lean`.
7979

8080
---
8181

src/FixedMathSharp.FluentAssertions/FixedMathSharp.FluentAssertions.csproj

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<PropertyGroup>
33
<LangVersion>11.0</LangVersion>
44
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>
5+
<DisableMemoryPack Condition="'$(DisableMemoryPack)' == ''">false</DisableMemoryPack>
56
<SemVer Condition="'$(GitVersion_FullSemVer)' != ''">$(GitVersion_FullSemVer)</SemVer>
67
<SemVer Condition="'$(SemVer)' == ''">0.0.0</SemVer>
78
<InfoVer Condition="'$(GitVersion_InformationalVersion)' != ''">$(GitVersion_InformationalVersion)</InfoVer>
@@ -20,12 +21,11 @@
2021
<DebugType>portable</DebugType>
2122
<Deterministic>true</Deterministic>
2223
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
23-
<Configurations>Debug;Release;ReleaseNoMemoryPack</Configurations>
24+
<Configurations>Debug;Release;ReleaseLean</Configurations>
2425
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2526
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2627
<AssemblyName>FixedMathSharp.FluentAssertions</AssemblyName>
2728
<RootNamespace>FixedMathSharp.Assertions</RootNamespace>
28-
<PackageId>FixedMathSharp.FluentAssertions</PackageId>
2929
<Authors>mrdav30</Authors>
3030
<Description>FluentAssertions extensions for FixedMathSharp types, including Fixed64, vectors, quaternions, and matrices.</Description>
3131
<PackageTags>fixed-point;math;precision;deterministic;assertions;fluentassertions;testing;dotnet;game-development</PackageTags>
@@ -36,6 +36,18 @@
3636
<NoWarn>1591</NoWarn>
3737
</PropertyGroup>
3838

39+
<PropertyGroup Condition="'$(Configuration)' == 'ReleaseLean'">
40+
<DisableMemoryPack>true</DisableMemoryPack>
41+
</PropertyGroup>
42+
43+
<PropertyGroup Condition="'$(DisableMemoryPack)' == 'true'">
44+
<PackageId>FixedMathSharp.FluentAssertions.Lean</PackageId>
45+
</PropertyGroup>
46+
47+
<PropertyGroup Condition="'$(DisableMemoryPack)' != 'true'">
48+
<PackageId>FixedMathSharp.FluentAssertions</PackageId>
49+
</PropertyGroup>
50+
3951
<ItemGroup>
4052
<ProjectReference Include="..\FixedMathSharp\FixedMathSharp.csproj" />
4153
<PackageReference Include="FluentAssertions" Version="8.9.0" />
@@ -48,4 +60,4 @@
4860
<None Include="..\..\COPYRIGHT" Pack="true" PackagePath="\" Visible="false" />
4961
<None Include="..\..\icon.png" Pack="true" PackagePath="\" Visible="false" />
5062
</ItemGroup>
51-
</Project>
63+
</Project>

src/FixedMathSharp/FixedMathSharp.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PropertyGroup>
55
<LangVersion>11.0</LangVersion>
66
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>
7-
<Configurations>Debug;Release;ReleaseNoMemoryPack</Configurations>
7+
<Configurations>Debug;Release;ReleaseLean</Configurations>
88
<DisableMemoryPack Condition="'$(DisableMemoryPack)' == ''">false</DisableMemoryPack>
99
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
1010
<Deterministic>true</Deterministic>
@@ -60,13 +60,13 @@
6060

6161
<!-- Configurations Properties -->
6262

63-
<PropertyGroup Condition="'$(Configuration)' == 'ReleaseNoMemoryPack'">
63+
<PropertyGroup Condition="'$(Configuration)' == 'ReleaseLean'">
6464
<DisableMemoryPack>true</DisableMemoryPack>
6565
</PropertyGroup>
6666

6767
<PropertyGroup Condition="'$(DisableMemoryPack)' == 'true'">
6868
<DefineConstants>$(DefineConstants);FIXEDMATHSHARP_DISABLE_MEMORYPACK</DefineConstants>
69-
<PackageId>FixedMathSharp.NoMemoryPack</PackageId>
69+
<PackageId>FixedMathSharp.Lean</PackageId>
7070
</PropertyGroup>
7171

7272
<PropertyGroup Condition="'$(DisableMemoryPack)' != 'true'">
@@ -84,7 +84,7 @@
8484
<DefineConstants>DEBUG;TRACE</DefineConstants>
8585
</PropertyGroup>
8686

87-
<PropertyGroup Condition="'$(Configuration)' == 'Release' Or '$(Configuration)' == 'ReleaseNoMemoryPack'">
87+
<PropertyGroup Condition="'$(Configuration)' == 'Release' Or '$(Configuration)' == 'ReleaseLean'">
8888
<Optimize>true</Optimize>
8989
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
9090
</PropertyGroup>

tests/FixedMathSharp.Tests/FixedMathSharp.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>enable</Nullable>
77
<IsPackable>false</IsPackable>
88
<IsTestProject>true</IsTestProject>
9-
<Configurations>Debug;Release;ReleaseNoMemoryPack</Configurations>
9+
<Configurations>Debug;Release;ReleaseLean</Configurations>
1010
<OutputType>Exe</OutputType>
1111
<RunSettingsFilePath>$(MSBuildThisFileDirectory)coverlet.runsettings</RunSettingsFilePath>
1212
</PropertyGroup>

0 commit comments

Comments
 (0)