From d3ea624db8868ee7422e811dee15ae77fa5c7fc3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 04:50:53 +0000 Subject: [PATCH 1/5] Initial plan From 0065918d8d82d2b6066c86e79c0f20ca178d6cff Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 04:59:56 +0000 Subject: [PATCH 2/5] Set up repository structure based on serde.msgpack template Co-authored-by: agocke <515774+agocke@users.noreply.github.com> --- .github/workflows/ci.yml | 26 ++ .github/workflows/pack.yml | 21 ++ .github/workflows/publish.yml | 22 ++ .gitignore | 487 ++++++++++++++++++++++++++++ .vscode/launch.json | 24 ++ .vscode/tasks.json | 41 +++ Directory.Build.props | 5 + Directory.Build.targets | 18 + Directory.Packages.props | 14 + LICENSE | 28 ++ README.md | 30 +- bench/Program.cs | 2 + bench/bench.csproj | 19 ++ fixed-width.sln | 69 ++++ src/Serde.FixedWidth.csproj | 14 + tests/Serde.FixedWidth.Tests.csproj | 26 ++ 16 files changed, 845 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/pack.yml create mode 100644 .github/workflows/publish.yml create mode 100644 .gitignore create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json create mode 100644 Directory.Build.props create mode 100644 Directory.Build.targets create mode 100644 Directory.Packages.props create mode 100644 LICENSE create mode 100644 bench/Program.cs create mode 100644 bench/bench.csproj create mode 100644 fixed-width.sln create mode 100644 src/Serde.FixedWidth.csproj create mode 100644 tests/Serde.FixedWidth.Tests.csproj diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9167e47 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 8.0.* + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore -warnaserror + - name: Test + run: dotnet test --no-build --verbosity normal + - name: Pack + run: dotnet pack -c Release diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml new file mode 100644 index 0000000..b0bc15f --- /dev/null +++ b/.github/workflows/pack.yml @@ -0,0 +1,21 @@ +name: Pack +on: + push: + branches: [ main ] +jobs: + pack: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 8.0.* + - name: Pack + run: dotnet pack -c Release + - name: Upload package + uses: actions/upload-artifact@v4 + with: + name: NuGet packages + path: artifacts/package/release/*.nupkg diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..02e8f73 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ + +name: publish +on: + push: + branches: [ release ] + release: + types: [ published ] + +jobs: + pack: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 8.0.* + - name: Pack + run: dotnet pack -c Release + - name: Publish package + run: dotnet nuget push --skip-duplicate -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json artifacts/package/release/*.nupkg diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..87e72e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,487 @@ +# This is only for local build +PackageRedirects.props + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from `dotnet new gitignore` + +# dotenv files +.env + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET +project.lock.json +project.fragment.lock.json +artifacts/ + +# Tye +.tye/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml +.idea/ + +## +## Visual studio for Mac +## + + +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# Mac bundle stuff +*.dmg +*.app + +# content below from: https://github.com/github/gitignore/blob/main/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/main/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# Vim temporary swap files +*.swp diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..1b1fa9f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,24 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + "program": "${workspaceFolder}/artifacts/bin/bench/debug/bench.dll", + "args": [], + "cwd": "${workspaceFolder}/bench", + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..8a072dc --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/fixed-width.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/fixed-width.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/fixed-width.sln" + ], + "problemMatcher": "$msCompile" + } + ] +} diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..5cda900 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,5 @@ + + + true + + diff --git a/Directory.Build.targets b/Directory.Build.targets new file mode 100644 index 0000000..861cf17 --- /dev/null +++ b/Directory.Build.targets @@ -0,0 +1,18 @@ + + + + + <_ExcludePackage Include="@(PackageRedirect)" Exclude="@(PackageReference)"> + PackageName + %(PackageName) + + <_ExcludeProjects Include ="@(_ExcludePackage->Metadata('ProjectPath'))" /> + + %(ReferenceOutputAssembly) + %(OutputItemType) + + + + + diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 0000000..3d5032a --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,14 @@ + + + + true + + + + + + + + + + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..76820c4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,28 @@ +BSD 3-Clause License + +Copyright (c) 2024, serde.msgpack + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index a449490..9bfa8b7 100644 --- a/README.md +++ b/README.md @@ -1 +1,29 @@ -# fixed-width \ No newline at end of file +# Serde.FixedWidth + +A fixed-width format serializer/deserializer for .NET using [Serde](https://github.com/serdedotnet/serde). + +## Status + +This project is in early development. The repository structure is set up but implementation is not yet started. + +## Building + +```bash +dotnet build +``` + +## Testing + +```bash +dotnet test +``` + +## Benchmarking + +```bash +dotnet run --project bench -c Release +``` + +## License + +BSD 3-Clause License. See [LICENSE](LICENSE) for details. \ No newline at end of file diff --git a/bench/Program.cs b/bench/Program.cs new file mode 100644 index 0000000..f3530d9 --- /dev/null +++ b/bench/Program.cs @@ -0,0 +1,2 @@ +// Benchmark entry point - to be implemented +Console.WriteLine("Benchmarks not yet implemented"); diff --git a/bench/bench.csproj b/bench/bench.csproj new file mode 100644 index 0000000..7593af9 --- /dev/null +++ b/bench/bench.csproj @@ -0,0 +1,19 @@ + + + + Exe + net8.0 + enable + enable + false + + + + + + + + + + + diff --git a/fixed-width.sln b/fixed-width.sln new file mode 100644 index 0000000..9807632 --- /dev/null +++ b/fixed-width.sln @@ -0,0 +1,69 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serde.FixedWidth", "src\Serde.FixedWidth.csproj", "{0DF4287F-0E09-4D12-ACD9-46211CFCC160}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serde.FixedWidth.Tests", "tests\Serde.FixedWidth.Tests.csproj", "{BFB024DD-A709-4A13-84A3-3720E3BB5D0E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bench", "bench\bench.csproj", "{35C1A909-217B-47CC-BA25-0BD334F36E42}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Debug|x64.ActiveCfg = Debug|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Debug|x64.Build.0 = Debug|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Debug|x86.ActiveCfg = Debug|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Debug|x86.Build.0 = Debug|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Release|Any CPU.Build.0 = Release|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Release|x64.ActiveCfg = Release|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Release|x64.Build.0 = Release|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Release|x86.ActiveCfg = Release|Any CPU + {0DF4287F-0E09-4D12-ACD9-46211CFCC160}.Release|x86.Build.0 = Release|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Debug|x64.ActiveCfg = Debug|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Debug|x64.Build.0 = Debug|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Debug|x86.ActiveCfg = Debug|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Debug|x86.Build.0 = Debug|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Release|Any CPU.Build.0 = Release|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Release|x64.ActiveCfg = Release|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Release|x64.Build.0 = Release|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Release|x86.ActiveCfg = Release|Any CPU + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E}.Release|x86.Build.0 = Release|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Debug|Any CPU.Build.0 = Debug|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Debug|x64.ActiveCfg = Debug|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Debug|x64.Build.0 = Debug|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Debug|x86.ActiveCfg = Debug|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Debug|x86.Build.0 = Debug|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Release|Any CPU.ActiveCfg = Release|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Release|Any CPU.Build.0 = Release|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Release|x64.ActiveCfg = Release|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Release|x64.Build.0 = Release|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Release|x86.ActiveCfg = Release|Any CPU + {35C1A909-217B-47CC-BA25-0BD334F36E42}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {0DF4287F-0E09-4D12-ACD9-46211CFCC160} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B} + {BFB024DD-A709-4A13-84A3-3720E3BB5D0E} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B} + {35C1A909-217B-47CC-BA25-0BD334F36E42} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B} + EndGlobalSection +EndGlobal diff --git a/src/Serde.FixedWidth.csproj b/src/Serde.FixedWidth.csproj new file mode 100644 index 0000000..03bce3c --- /dev/null +++ b/src/Serde.FixedWidth.csproj @@ -0,0 +1,14 @@ + + + + net8.0 + enable + enable + 0.1.0-preview1 + + + + + + + diff --git a/tests/Serde.FixedWidth.Tests.csproj b/tests/Serde.FixedWidth.Tests.csproj new file mode 100644 index 0000000..19ab4c4 --- /dev/null +++ b/tests/Serde.FixedWidth.Tests.csproj @@ -0,0 +1,26 @@ + + + + net8.0 + enable + enable + false + + + + + + + + + + + + + + + + + + + From 46d90f935b379011cd609b7e2f6fd8c6aae71cd9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 05:01:42 +0000 Subject: [PATCH 3/5] Update GitHub Actions to latest versions Co-authored-by: agocke <515774+agocke@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++-- .github/workflows/pack.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9167e47..3941075 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.* - name: Restore dependencies diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index b0bc15f..102830a 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -7,9 +7,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.* - name: Pack diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 02e8f73..5bf454c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.* - name: Pack From e14b57c1af27b86b1d09740a396285ec1b0dad2a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 05:05:04 +0000 Subject: [PATCH 4/5] Add explicit permissions to GitHub Actions workflows Co-authored-by: agocke <515774+agocke@users.noreply.github.com> --- .github/workflows/ci.yml | 2 ++ .github/workflows/pack.yml | 2 ++ .github/workflows/publish.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3941075..777283b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ jobs: build: runs-on: ubuntu-latest + permissions: + contents: read steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index 102830a..ed00f92 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -5,6 +5,8 @@ on: jobs: pack: runs-on: ubuntu-latest + permissions: + contents: read steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5bf454c..19889ab 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,8 @@ on: jobs: pack: runs-on: ubuntu-latest + permissions: + contents: read steps: - uses: actions/checkout@v4 From eee6d9566f8d56c67a7dd2c21f08a598f465e5bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 09:13:07 +0000 Subject: [PATCH 5/5] Remove VS Code configuration files Co-authored-by: agocke <515774+agocke@users.noreply.github.com> --- .vscode/launch.json | 24 ------------------------ .vscode/tasks.json | 41 ----------------------------------------- 2 files changed, 65 deletions(-) delete mode 100644 .vscode/launch.json delete mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 1b1fa9f..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": ".NET Core Launch (console)", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build", - "program": "${workspaceFolder}/artifacts/bin/bench/debug/bench.dll", - "args": [], - "cwd": "${workspaceFolder}/bench", - "console": "internalConsole", - "stopAtEntry": false - }, - { - "name": ".NET Core Attach", - "type": "coreclr", - "request": "attach" - } - ] -} diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 8a072dc..0000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "label": "build", - "command": "dotnet", - "type": "process", - "args": [ - "build", - "${workspaceFolder}/fixed-width.sln", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary;ForceNoAlign" - ], - "problemMatcher": "$msCompile" - }, - { - "label": "publish", - "command": "dotnet", - "type": "process", - "args": [ - "publish", - "${workspaceFolder}/fixed-width.sln", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary;ForceNoAlign" - ], - "problemMatcher": "$msCompile" - }, - { - "label": "watch", - "command": "dotnet", - "type": "process", - "args": [ - "watch", - "run", - "--project", - "${workspaceFolder}/fixed-width.sln" - ], - "problemMatcher": "$msCompile" - } - ] -}