Skip to content

Commit 476d798

Browse files
committed
initials
1 parent 586ca59 commit 476d798

21 files changed

+721
-0
lines changed

.editorconfig

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
insert_final_newline = true
6+
indent_style = space
7+
trim_trailing_whitespace = true
8+
9+
[*.{sh,yaml,yml,rules}]
10+
charset = utf-8
11+
indent_size = 2
12+
end_of_line = lf
13+
14+
[*{_AssemblyInfo.cs,.notsupported.cs}]
15+
generated_code = true
16+
17+
# C# files
18+
[*.cs]
19+
charset = utf-8-bom
20+
indent_size = 4
21+
22+
csharp_style_namespace_declarations = file_scoped
23+
dotnet_style_require_accessibility_modifiers = never
24+
25+
# VSTHRD101: Avoid async void
26+
# VSTHRD101: Avoid unsupported async delegates
27+
dotnet_diagnostic.VSTHRD100.severity = none
28+
dotnet_diagnostic.VSTHRD101.severity = none
29+
30+
# VSTHRD003: Avoid awaiting foreign Tasks
31+
dotnet_diagnostic.VSTHRD003.severity = none
32+
33+
# VSTHRD111: Use ConfigureAwait(bool)
34+
dotnet_diagnostic.VSTHRD111.severity = error

.github/workflows/build-debug.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build-Debug
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "main"
8+
pull_request:
9+
branches:
10+
- "main"
11+
12+
jobs:
13+
build-dotnet:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
19+
- run: dotnet build -c Debug
20+
- run: dotnet test -c Debug --no-build

.github/workflows/build-release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: Build-Release

.github/workflows/stale.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: "Close stale issues"
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
jobs:
9+
stale:
10+
uses: Cysharp/Actions/.github/workflows/stale-issue.yaml@main

.gitignore

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
2+
[Bb]in/
3+
[Oo]bj/
4+
5+
# mstest test results
6+
TestResults
7+
8+
## Ignore Visual Studio temporary files, build results, and
9+
## files generated by popular Visual Studio add-ons.
10+
11+
# User-specific files
12+
*.suo
13+
*.user
14+
*.sln.docstates
15+
16+
# Build results
17+
[Dd]ebug/
18+
[Rr]elease/
19+
*_i.c
20+
*_p.c
21+
*.ilk
22+
*.obj
23+
*.pch
24+
*.pdb
25+
*.pgc
26+
*.pgd
27+
*.rsp
28+
*.sbr
29+
*.tlb
30+
*.tli
31+
*.tlh
32+
*.tmp
33+
*.log
34+
*.vspscc
35+
*.vssscc
36+
.builds
37+
38+
# Visual C++ cache files
39+
ipch/
40+
*.aps
41+
*.ncb
42+
*.opensdf
43+
*.sdf
44+
45+
# Visual Studio profiler
46+
*.psess
47+
*.vsp
48+
*.vspx
49+
50+
# Guidance Automation Toolkit
51+
*.gpState
52+
53+
# ReSharper is a .NET coding add-in
54+
_ReSharper*
55+
56+
# NCrunch
57+
*.ncrunch*
58+
.*crunch*.local.xml
59+
60+
# Installshield output folder
61+
[Ee]xpress
62+
63+
# DocProject is a documentation generator add-in
64+
DocProject/buildhelp/
65+
DocProject/Help/*.HxT
66+
DocProject/Help/*.HxC
67+
DocProject/Help/*.hhc
68+
DocProject/Help/*.hhk
69+
DocProject/Help/*.hhp
70+
DocProject/Help/Html2
71+
DocProject/Help/html
72+
73+
# Click-Once directory
74+
publish
75+
76+
# Publish Web Output
77+
*.Publish.xml
78+
79+
# NuGet Packages Directory
80+
# packages # upm pacakge will use Packages
81+
82+
# Windows Azure Build Output
83+
csx
84+
*.build.csdef
85+
86+
# Windows Store app package directory
87+
AppPackages/
88+
89+
# Others
90+
[Bb]in
91+
[Oo]bj
92+
sql
93+
TestResults
94+
[Tt]est[Rr]esult*
95+
*.Cache
96+
ClientBin
97+
[Ss]tyle[Cc]op.*
98+
~$*
99+
*.dbmdl
100+
Generated_Code #added for RIA/Silverlight projects
101+
102+
# Backup & report files from converting an old project file to a newer
103+
# Visual Studio version. Backup files are not needed, because we have git ;-)
104+
_UpgradeReport_Files/
105+
Backup*/
106+
UpgradeLog*.XML
107+
.vs/config/applicationhost.config
108+
.vs/restore.dg
109+
110+
nuget/tools/*
111+
nuget/*.nupkg
112+
nuget/*.unitypackage
113+
.vs/
114+
115+
# Jetbrains Rider
116+
.idea/
117+
118+
# Unity

Directory.Build.props

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<Project>
2+
<PropertyGroup>
3+
<LangVersion>latest</LangVersion>
4+
<Nullable>enable</Nullable>
5+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
6+
<NoWarn>$(NoWarn);CS1591</NoWarn>
7+
<SignAssembly>true</SignAssembly>
8+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
9+
10+
<!-- NuGet Packaging -->
11+
<PackageVersion>$(Version)</PackageVersion>
12+
<Company>Cysharp</Company>
13+
<Authors>Cysharp</Authors>
14+
<Copyright>© Cysharp, Inc.</Copyright>
15+
<PackageProjectUrl>https://github.com/Cysharp/MemoryPack</PackageProjectUrl>
16+
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
17+
<RepositoryType>git</RepositoryType>
18+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
19+
<PackageIcon>Icon.png</PackageIcon>
20+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
21+
</PropertyGroup>
22+
</Project>

Icon.png

3.11 KB
Loading

MemoryPack.sln

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.1.32210.238
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MemoryPack.Core", "src\MemoryPack.Core\MemoryPack.Core.csproj", "{03BF8319-91FB-4ABA-8FA2-E7D088C94E5D}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{81B295E0-EEDE-4D5B-B4AC-1202D5E6B3CF}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{204004F9-9B91-4DD1-812C-80D629169ED5}"
11+
EndProject
12+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sandbox", "sandbox", "{796FB992-A35C-405B-82A7-4C90C5673174}"
13+
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SandboxConsoleApp", "sandbox\SandboxConsoleApp\SandboxConsoleApp.csproj", "{668B187F-726A-4558-90DB-019C332E51F0}"
15+
EndProject
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MemoryPack.Tests", "tests\MemoryPack.Tests\MemoryPack.Tests.csproj", "{1C22BB73-56D7-4C13-99BA-D7C25C45510F}"
17+
EndProject
18+
Global
19+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
20+
Debug|Any CPU = Debug|Any CPU
21+
Release|Any CPU = Release|Any CPU
22+
EndGlobalSection
23+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
24+
{03BF8319-91FB-4ABA-8FA2-E7D088C94E5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25+
{03BF8319-91FB-4ABA-8FA2-E7D088C94E5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
26+
{03BF8319-91FB-4ABA-8FA2-E7D088C94E5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
27+
{03BF8319-91FB-4ABA-8FA2-E7D088C94E5D}.Release|Any CPU.Build.0 = Release|Any CPU
28+
{668B187F-726A-4558-90DB-019C332E51F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{668B187F-726A-4558-90DB-019C332E51F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{668B187F-726A-4558-90DB-019C332E51F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
31+
{668B187F-726A-4558-90DB-019C332E51F0}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{1C22BB73-56D7-4C13-99BA-D7C25C45510F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{1C22BB73-56D7-4C13-99BA-D7C25C45510F}.Debug|Any CPU.Build.0 = Debug|Any CPU
34+
{1C22BB73-56D7-4C13-99BA-D7C25C45510F}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{1C22BB73-56D7-4C13-99BA-D7C25C45510F}.Release|Any CPU.Build.0 = Release|Any CPU
36+
EndGlobalSection
37+
GlobalSection(SolutionProperties) = preSolution
38+
HideSolutionNode = FALSE
39+
EndGlobalSection
40+
GlobalSection(NestedProjects) = preSolution
41+
{03BF8319-91FB-4ABA-8FA2-E7D088C94E5D} = {81B295E0-EEDE-4D5B-B4AC-1202D5E6B3CF}
42+
{668B187F-726A-4558-90DB-019C332E51F0} = {796FB992-A35C-405B-82A7-4C90C5673174}
43+
{1C22BB73-56D7-4C13-99BA-D7C25C45510F} = {204004F9-9B91-4DD1-812C-80D629169ED5}
44+
EndGlobalSection
45+
GlobalSection(ExtensibilityGlobals) = postSolution
46+
SolutionGuid = {01ADF7A3-0758-4A3C-9A18-AEF0F30B6E1B}
47+
EndGlobalSection
48+
EndGlobal

opensource.snk

596 Bytes
Binary file not shown.

sandbox/SandboxConsoleApp/Program.cs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using MemoryPack;
2+
3+
ConsoleAppFramework.ConsoleApp.Run<StandardRunner>(args);
4+
5+
public class StandardRunner : ConsoleAppBase
6+
{
7+
[RootCommand]
8+
public void Run()
9+
{
10+
var bin = MemoryPackSerializer.Serialize(9999);
11+
foreach (var item in bin)
12+
{
13+
Console.WriteLine(item);
14+
}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="ConsoleAppFramework" Version="4.2.2" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<ProjectReference Include="..\..\src\MemoryPack.Core\MemoryPack.Core.csproj" />
16+
</ItemGroup>
17+
18+
</Project>

0 commit comments

Comments
 (0)