aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-08-01 21:13:04 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-08-01 21:13:04 -0400
commit904560a7b5eafd7580fb0a03e778d1751e72a503 (patch)
tree9ffc07d9f9dd6a9106b8cd695a6caa591aac8e95 /lib
parent6af95e61212611908d39235222474d4038e10fcd (diff)
build(app): swallow vnlib.webserver into core & build updates
Diffstat (limited to 'lib')
-rw-r--r--lib/Hashing.Portable/src/VNLib.Hashing.Portable.csproj2
-rw-r--r--lib/Net.Compression/VNLib.Net.Compression/VNLib.Net.Compression.csproj2
-rw-r--r--lib/Net.Compression/vnlib_compress/Taskfile.yaml76
-rw-r--r--lib/Net.Http/src/VNLib.Net.Http.csproj2
-rw-r--r--lib/Net.Messaging.FBM/src/VNLib.Net.Messaging.FBM.csproj2
-rw-r--r--lib/Net.Rest.Client/src/VNLib.Net.Rest.Client.csproj2
-rw-r--r--lib/Net.Transport.SimpleTCP/src/VNLib.Net.Transport.SimpleTCP.csproj2
-rw-r--r--lib/Plugins.Essentials.ServiceStack/src/VNLib.Plugins.Essentials.ServiceStack.csproj2
-rw-r--r--lib/Plugins.Essentials/src/VNLib.Plugins.Essentials.csproj2
-rw-r--r--lib/Plugins.PluginBase/src/VNLib.Plugins.PluginBase.csproj2
-rw-r--r--lib/Plugins.Runtime/src/VNLib.Plugins.Runtime.csproj2
-rw-r--r--lib/Plugins/src/VNLib.Plugins.csproj2
-rw-r--r--lib/Utils.Cryptography/argon2/.gitattributes10
-rw-r--r--lib/Utils.Cryptography/argon2/.gitignore22
-rw-r--r--lib/Utils.Cryptography/argon2/.travis.yml25
-rw-r--r--lib/Utils.Cryptography/argon2/Taskfile.yaml98
-rw-r--r--lib/Utils.Cryptography/argon2/appveyor.yml25
-rw-r--r--lib/Utils.Cryptography/argon2/argon2-specs.pdfbin459608 -> 0 bytes
-rw-r--r--lib/Utils.Cryptography/argon2/export.sh7
-rw-r--r--lib/Utils.Memory/vnlib_mimalloc/Taskfile.yaml67
-rw-r--r--lib/Utils.Memory/vnlib_mimalloc/package.json6
-rw-r--r--lib/Utils.Memory/vnlib_rpmalloc/Taskfile.yaml69
-rw-r--r--lib/Utils.Memory/vnlib_rpmalloc/package.json6
-rw-r--r--lib/Utils/src/VNLib.Utils.csproj2
24 files changed, 207 insertions, 228 deletions
diff --git a/lib/Hashing.Portable/src/VNLib.Hashing.Portable.csproj b/lib/Hashing.Portable/src/VNLib.Hashing.Portable.csproj
index da61ae1..a4afc35 100644
--- a/lib/Hashing.Portable/src/VNLib.Hashing.Portable.csproj
+++ b/lib/Hashing.Portable/src/VNLib.Hashing.Portable.csproj
@@ -22,7 +22,7 @@
<Company>Vaughn Nugent</Company>
<Copyright>Copyright © 2024 Vaughn Nugent</Copyright>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Hashing.Portable</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Hashing.Portable</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Net.Compression/VNLib.Net.Compression/VNLib.Net.Compression.csproj b/lib/Net.Compression/VNLib.Net.Compression/VNLib.Net.Compression.csproj
index c5b428e..2f49dda 100644
--- a/lib/Net.Compression/VNLib.Net.Compression/VNLib.Net.Compression.csproj
+++ b/lib/Net.Compression/VNLib.Net.Compression/VNLib.Net.Compression.csproj
@@ -24,7 +24,7 @@
<Copyright>Copyright © 2024 Vaughn Nugent</Copyright>
<Description>.NET/8.0 dynamically loadable managed wrapper library for loading vnlib_compress native library. It provides an implementation of the IHttpCompressorManager interface for use with the VNLib.Net.Http library and servers wishing to support dynamic response compression.</Description>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Net.Compression</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Net.Compression</RepositoryUrl>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Net.Compression/vnlib_compress/Taskfile.yaml b/lib/Net.Compression/vnlib_compress/Taskfile.yaml
index f1d594e..32636ee 100644
--- a/lib/Net.Compression/vnlib_compress/Taskfile.yaml
+++ b/lib/Net.Compression/vnlib_compress/Taskfile.yaml
@@ -31,33 +31,79 @@ tasks:
- cmake -B./build -DCI_PRECOMPILE=ON -DENABLE_RPMALLOC=ON
#build for platform
- - cmake --build build/ --config Debug
- - cmake --build build/ --config Release
+ - cmake --build build/ --config debug
+ - cmake --build build/ --config release
#when build succeeds, archive the output into a tgz
postbuild_success:
+ cmds:
+ - cmd: powershell mkdir -Force 'bin/'
+ - task: pack_parallel
+
+ pack_parallel:
+ internal: true
vars:
#required files to include in tar
- TAR_FILES: "{{.PROJECT_NAME}}.dll {{.PROJECT_NAME}}.pdb {{.PROJECT_NAME}}.lib license.txt"
+ REL_TAR_FILES:
+ "{{ .PROJECT_NAME }}.dll
+ {{ .PROJECT_NAME }}.lib
+ compression.h
+ license.txt"
+ DEBUG_TAR_FILES:
+ "{{ .PROJECT_NAME }}.dll
+ {{ .PROJECT_NAME }}.pdb
+ {{ .PROJECT_NAME }}.lib
+ compression.h
+ license.txt"
+
+ deps:
+ - task: pack_source
+
+ - task: pack_artifacts
+ vars: { BUILD_MODE: 'debug', TAR_FILES: '{{ .DEBUG_TAR_FILES }}' }
+ - task: pack_artifacts
+ vars: { BUILD_MODE: 'release', TAR_FILES: '{{ .REL_TAR_FILES }}' }
+
+ #packs up the binary artifacts for distribution
+ pack_artifacts:
+ internal: true
+ deps:
+ - task: embed
+ vars: { TARGET: './build/{{ .BUILD_MODE }}' }
cmds:
- - cmd: powershell mkdir -Force './bin'
- #copy source code to target
- - cmd: powershell -Command "tar --exclude build/* --exclude .vs/* --exclude bin/* --exclude third-party/* -czf bin/src.tgz ."
-
- #copy license file to debug and release output
- - cmd: powershell -Command "cp ../LICENSE build/Debug/license.txt"
- - cmd: powershell -Command "cp ../LICENSE build/Release/license.txt"
+ - cmd: cd build/{{ .BUILD_MODE }} && tar -czf '../../bin/msvc-x64-{{ .BUILD_MODE }}-{{ .PROJECT_NAME }}.tgz' {{ .TAR_FILES }}
+
+ #add embeded resources to the binary output for distribution
+ embed:
+ internal: true
+ cmds:
+ - powershell cp ../LICENSE '{{.TARGET}}/license.txt'
+ - powershell cp compression.h '{{.TARGET}}/compression.h'
+
+ #packages source code for distribution
+ pack_source:
+ internal: true
+ vars:
+ EXCLUDES:
+
+ INCLUDES:
+ "*.c
+ *.h
+ CMakeLists.txt
+ LICENSE
+ Taskfile.yaml"
+
+ cmds:
+ #just pack up current directory, excluding build, bin, and git directories
+ - tar {{ .EXCLUDES }} -czf 'bin/src.tgz' {{ .INCLUDES }}
- #create static-build archives
- - cd build/Debug && tar -czf ../../bin/msvc-x64-debug-{{.PROJECT_NAME}}.tgz {{.TAR_FILES}}
- - cd build/Release && tar -czf ../../bin/msvc-x64-release-{{.PROJECT_NAME}}.tgz {{.TAR_FILES}}
-#Remove the output dirs on clean
+ #Remove the output dirs on clean
clean:
ignore_error: true
cmds:
- for: [ bin/, build/ ]
- cmd: powershell Remove-Item -Recurse '{{.ITEM}}' -Force
+ cmd: powershell rm -Recurse '{{.ITEM}}' -Force
clean-third-party:
internal: false
diff --git a/lib/Net.Http/src/VNLib.Net.Http.csproj b/lib/Net.Http/src/VNLib.Net.Http.csproj
index e57f784..d9117f4 100644
--- a/lib/Net.Http/src/VNLib.Net.Http.csproj
+++ b/lib/Net.Http/src/VNLib.Net.Http.csproj
@@ -22,7 +22,7 @@
<Description>Provides a high performance HTTP 0.9-1.1 application processing layer for handling transport *agnostic connections and asynchronous event support for applications serving HTTP requests such as web content. This library has a large focus on low/no GC allocations using unmanaged memory support provided by the VNLib.Utils library. No external dependencies outside of the VNLib ecosystem are required. The VNLib.Plugins and VNLib.Plugins.Essentials libraries are highly recommended for serving web content.</Description>
<Copyright>Copyright © 2024 Vaughn Nugent</Copyright>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Net.Http</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Net.Http</RepositoryUrl>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Net.Messaging.FBM/src/VNLib.Net.Messaging.FBM.csproj b/lib/Net.Messaging.FBM/src/VNLib.Net.Messaging.FBM.csproj
index 897bca5..8fc2fb0 100644
--- a/lib/Net.Messaging.FBM/src/VNLib.Net.Messaging.FBM.csproj
+++ b/lib/Net.Messaging.FBM/src/VNLib.Net.Messaging.FBM.csproj
@@ -20,7 +20,7 @@
<Description>Fixed Buffer Messaging protocol class library. Implements a high-performance asynchronous request/response messaging architecture build on top of HTTP websockets. Provides client and server data structures.</Description>
<Copyright>Copyright © 2024 Vaughn Nugent</Copyright>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Net.Messaging.FBM</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Net.Messaging.FBM</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Net.Rest.Client/src/VNLib.Net.Rest.Client.csproj b/lib/Net.Rest.Client/src/VNLib.Net.Rest.Client.csproj
index 95f7e05..37ae341 100644
--- a/lib/Net.Rest.Client/src/VNLib.Net.Rest.Client.csproj
+++ b/lib/Net.Rest.Client/src/VNLib.Net.Rest.Client.csproj
@@ -20,7 +20,7 @@
<Copyright>Copyright © 2024 Vaughn Nugent</Copyright>
<Description>Provides a RestClient connection pool using the Utils.ObjectRental framework for reusing RestClients with a common configuration to execute RestRequests against. This library also implements an OAuth2 authenticator for the RestSharp IAuthenticator using the client credentials method.</Description>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Net.Rest.Client</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Net.Rest.Client</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Net.Transport.SimpleTCP/src/VNLib.Net.Transport.SimpleTCP.csproj b/lib/Net.Transport.SimpleTCP/src/VNLib.Net.Transport.SimpleTCP.csproj
index 630a0db..a2fc268 100644
--- a/lib/Net.Transport.SimpleTCP/src/VNLib.Net.Transport.SimpleTCP.csproj
+++ b/lib/Net.Transport.SimpleTCP/src/VNLib.Net.Transport.SimpleTCP.csproj
@@ -22,7 +22,7 @@
<Company>Vaughn Nugent</Company>
<Copyright>Copyright © 2024 Vaughn Nugent</Copyright>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Net.Transport.SimpleTCP</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Net.Transport.SimpleTCP</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Plugins.Essentials.ServiceStack/src/VNLib.Plugins.Essentials.ServiceStack.csproj b/lib/Plugins.Essentials.ServiceStack/src/VNLib.Plugins.Essentials.ServiceStack.csproj
index 4aedb80..b5dc949 100644
--- a/lib/Plugins.Essentials.ServiceStack/src/VNLib.Plugins.Essentials.ServiceStack.csproj
+++ b/lib/Plugins.Essentials.ServiceStack/src/VNLib.Plugins.Essentials.ServiceStack.csproj
@@ -20,7 +20,7 @@
<Copyright>Copyright © 2024 Vaughn Nugent</Copyright>
<Description>Provides data structures for building a dynamic HTTP servicing stack with runtime plugin loading, dynamic endpoint routing, middleware* configuration, and multi-server managment.</Description>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Plugins.Essentials.ServiceStack</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Plugins.Essentials.ServiceStack</RepositoryUrl>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Plugins.Essentials/src/VNLib.Plugins.Essentials.csproj b/lib/Plugins.Essentials/src/VNLib.Plugins.Essentials.csproj
index 3a21ac9..45a4d50 100644
--- a/lib/Plugins.Essentials/src/VNLib.Plugins.Essentials.csproj
+++ b/lib/Plugins.Essentials/src/VNLib.Plugins.Essentials.csproj
@@ -22,7 +22,7 @@
<Description>Provides essential web, sessions, users abstractions for building extensable web applications with satefull sessions, user based intraction with login and account security extensions.</Description>
<PackageTags>VNLib, Plugins, VNLib.Plugins.Essentials, Essentials, Essential Plugins, HTTP Essentials, OAuth2</PackageTags>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Plugins.Essentials</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Plugins.Essentials</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Plugins.PluginBase/src/VNLib.Plugins.PluginBase.csproj b/lib/Plugins.PluginBase/src/VNLib.Plugins.PluginBase.csproj
index 2f4abfa..d1207c2 100644
--- a/lib/Plugins.PluginBase/src/VNLib.Plugins.PluginBase.csproj
+++ b/lib/Plugins.PluginBase/src/VNLib.Plugins.PluginBase.csproj
@@ -20,7 +20,7 @@
<Copyright>Copyright © 2024 Vaughn Nugent</Copyright>
<Description>A base class for VNLib.Plugins that provides all supported loading functionalities, with built-in logging, loading, task-managment and endpoint routing.</Description>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Plugins.PluginBase</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Plugins.PluginBase</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Plugins.Runtime/src/VNLib.Plugins.Runtime.csproj b/lib/Plugins.Runtime/src/VNLib.Plugins.Runtime.csproj
index 002716f..6d18bef 100644
--- a/lib/Plugins.Runtime/src/VNLib.Plugins.Runtime.csproj
+++ b/lib/Plugins.Runtime/src/VNLib.Plugins.Runtime.csproj
@@ -20,7 +20,7 @@
<Copyright>Copyright © 2024 Vaughn Nugent</Copyright>
<Description>A runtime plugin loader for .NET. Allows runtime loading and tracking of .NET assemblies that export the VNLib.Plugin.IPlugin interface.</Description>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Plugins.Runtime</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Plugins.Runtime</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Plugins/src/VNLib.Plugins.csproj b/lib/Plugins/src/VNLib.Plugins.csproj
index 343d86f..4ac6366 100644
--- a/lib/Plugins/src/VNLib.Plugins.csproj
+++ b/lib/Plugins/src/VNLib.Plugins.csproj
@@ -23,7 +23,7 @@
<Description>Provides a standard interface for building dynamically loadable plugins and asynchronus web endpoint processing, compatible with the VNLib.Plugins.Runtime loader library.
</Description>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Plugins</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Plugins</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
diff --git a/lib/Utils.Cryptography/argon2/.gitattributes b/lib/Utils.Cryptography/argon2/.gitattributes
deleted file mode 100644
index 177bed9..0000000
--- a/lib/Utils.Cryptography/argon2/.gitattributes
+++ /dev/null
@@ -1,10 +0,0 @@
-# Export ignore
-.gitattributes export-ignore
-.gitignore export-ignore
-.travis.yml export-ignore
-appveyor.yml export-ignore
-export.sh export-ignore
-latex/* export-ignore
-
-# Linguist documentation
-latex/* linguist-documentation
diff --git a/lib/Utils.Cryptography/argon2/.gitignore b/lib/Utils.Cryptography/argon2/.gitignore
deleted file mode 100644
index 2bb1416..0000000
--- a/lib/Utils.Cryptography/argon2/.gitignore
+++ /dev/null
@@ -1,22 +0,0 @@
-argon2
-libargon2.a
-libargon2.so*
-libargon2.dylib
-libargon2.pc
-.DS_Store
-src/*.o
-src/blake2/*.o
-genkat
-.idea
-*.pyc
-testcase
-*.gcda
-*.gcno
-*.gcov
-bench
-vs2015/build
-Argon2.sdf
-Argon2.VC.opendb
-*.zip
-*.tar.gz
-tags
diff --git a/lib/Utils.Cryptography/argon2/.travis.yml b/lib/Utils.Cryptography/argon2/.travis.yml
deleted file mode 100644
index 265fc48..0000000
--- a/lib/Utils.Cryptography/argon2/.travis.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-language: c
-
-compiler:
- - clang
- - gcc
-
-os:
- - linux
- - osx
-
-# Clang on Linux needs to run in a VM to use ASAN.
-# See: https://github.com/travis-ci/travis-ci/issues/9033
-matrix:
- exclude:
- - compiler: clang
- os: linux
- include:
- - compiler: clang
- os: linux
- sudo: true
-
-script: make && make testci
-
-after_success:
- - bash <(curl -s https://codecov.io/bash)
diff --git a/lib/Utils.Cryptography/argon2/Taskfile.yaml b/lib/Utils.Cryptography/argon2/Taskfile.yaml
index 73fb8fa..d08d3b6 100644
--- a/lib/Utils.Cryptography/argon2/Taskfile.yaml
+++ b/lib/Utils.Cryptography/argon2/Taskfile.yaml
@@ -19,68 +19,84 @@ tasks:
cmds:
#build with defaults
- task: build
- - cmd: echo "Your Argon2 dll file can be found in '{{.USER_WORKING_DIR}}/build'"
+ - cmd: echo "Your Argon2 library file can be found in '{{ .USER_WORKING_DIR }}/build'"
silent: true
build:
cmds:
#init cmake build with greedy enabled
- - cmake -B./build
-
- - cmake --build build/ --config Debug
- - cmake --build build/ --config Release
+ - cmake -B./build
+ - cmake --build build/ --config debug
+ - cmake --build build/ --config release
postbuild_success:
- vars:
- #required files to include in tar
- TAR_FILES: "license.txt readme.txt argon2.h"
-
cmds:
#make bin dir
- - cmd: powershell -Command "New-Item -Type Directory -Force -Path './bin'"
+ - cmd: powershell mkdir -Force 'bin/'
ignore_error: true
-
- #add embeded resources to output dirs
- - task: embed
- vars:
- TARGET: './build/Debug'
-
- - task: embed
- vars:
- TARGET: './build/Release'
-
-
- #static debug lib
- - cd build/Debug && tar -czf '../../bin/msvc-x64-debug-{{.PROJECT_NAME}}-static.tgz' {{.PROJECT_NAME}}_static.lib {{.TAR_FILES}} {{.PROJECT_NAME}}_static.pdb
- #dynamic debug lib
- - cd build/Debug && tar -czf '../../bin/msvc-x64-debug-{{.PROJECT_NAME}}.tgz' {{.PROJECT_NAME}}.dll {{.TAR_FILES}} {{.PROJECT_NAME}}.pdb
- #release static lib
- - cd build/Release && tar -czf '../../bin/msvc-x64-release-{{.PROJECT_NAME}}-static.tgz' {{.PROJECT_NAME}}_static.lib {{.TAR_FILES}}
- #release dll
- - cd build/Release && tar -czf '../../bin/msvc-x64-release-{{.PROJECT_NAME}}.tgz' {{.PROJECT_NAME}}.dll {{.TAR_FILES}}
+ - task: parallel_postbuild
+
+ parallel_postbuild:
+ internal: true
+ vars:
+ #required files to include in tar
+ BIN_FILES:
+ license.txt
+ readme.txt
+ argon2.h
+ '{{ .PROJECT_NAME }}.dll'
+
+ deps:
+ - task: pack_source
+
+ - task: pack_artifacts
+ vars: { BUILD_MODE: 'debug', TAR_FILES: '{{ .BIN_FILES }} {{ .PROJECT_NAME }}.pdb' }
+ - task: pack_artifacts
+ vars: { BUILD_MODE: 'release', TAR_FILES: '{{ .BIN_FILES }}' }
- #source code
- - task: pack_source
+ #packs up the binary artifacts for distribution
+ pack_artifacts:
+ internal: true
+ deps:
+ - task: embed
+ vars: { TARGET: './build/{{ .BUILD_MODE }}' }
+ cmds:
+ - cmd: cd build/{{ .BUILD_MODE }} && tar -czf '../../bin/msvc-x64-{{ .BUILD_MODE }}-{{ .PROJECT_NAME }}.tgz' {{ .TAR_FILES }}
+ #add embeded resources to the binary output for distribution
embed:
+ internal: true
cmds:
- #add license file
- - powershell -Command "Copy-Item -Path ./license -Destination '{{.TARGET}}/license.txt'"
- #add readme file
- - powershell -Command "Copy-Item -Path ./build.readme.txt -Destination '{{.TARGET}}/readme.txt'"
- #add argon2 header file
- - powershell -Command "Copy-Item -Path ./include/argon2.h -Destination '{{.TARGET}}/argon2.h'"
+ - powershell cp LICENSE '{{.TARGET}}/license.txt'
+ - powershell cp build.readme.txt '{{.TARGET}}/readme.txt'
+ - powershell cp include/argon2.h '{{.TARGET}}/argon2.h'
+ #packages source code for distribution
pack_source:
+ internal: true
+ vars:
+ EXCLUDES:
+
+ INCLUDES:
+ src/*
+ include/*
+ CHANGELOG.md
+ CMakeLists.txt
+ README.md
+ LICENSE
+ Argon2.sln
+ libargon2.pc.in
+ Makefile
+ Taskfile.yaml
+
cmds:
#just pack up current directory, excluding build, bin, and git directories
- - powershell -Command "tar --exclude build/* --exclude bin/* -czf bin/src.tgz ."
-
+ - tar {{ .EXCLUDES }} -czf 'bin/src.tgz' {{ .INCLUDES }}
clean:
ignore_error: true
cmds:
- - cmd: powershell -Command "Remove-Item -Recurse './bin'"
- - cmd: powershell -Command "Remove-Item -Recurse './build'" \ No newline at end of file
+ - for: [ bin/, build/ ]
+ cmd: powershell -Command "Remove-Item -Recurse '{{ .ITEM }}'"
diff --git a/lib/Utils.Cryptography/argon2/appveyor.yml b/lib/Utils.Cryptography/argon2/appveyor.yml
deleted file mode 100644
index fb1f048..0000000
--- a/lib/Utils.Cryptography/argon2/appveyor.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-os: Visual Studio 2015
-
-environment:
- matrix:
- - platform: x86
- configuration: Debug
- - platform: x86
- configuration: Release
- - platform: x64
- configuration: Debug
- - platform: x64
- configuration: Release
-
-matrix:
- fast_finish: false
-
-build:
- parallel: true
- project: Argon2.sln
- verbosity: minimal
-
-test_script:
- - ps: kats\test.ps1
- - ps: if ("Release" -eq $env:configuration) { vs2015\build\Argon2OptTestCI.exe }
- - ps: if ("Release" -eq $env:configuration) { vs2015\build\Argon2RefTestCI.exe }
diff --git a/lib/Utils.Cryptography/argon2/argon2-specs.pdf b/lib/Utils.Cryptography/argon2/argon2-specs.pdf
deleted file mode 100644
index d916af6..0000000
--- a/lib/Utils.Cryptography/argon2/argon2-specs.pdf
+++ /dev/null
Binary files differ
diff --git a/lib/Utils.Cryptography/argon2/export.sh b/lib/Utils.Cryptography/argon2/export.sh
deleted file mode 100644
index 9757b10..0000000
--- a/lib/Utils.Cryptography/argon2/export.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-FILE=`date "+%Y%m%d"`
-BRANCH=master
-
-git archive --format zip --output $FILE.zip $BRANCH
-git archive --format tar.gz --output $FILE.tar.gz $BRANCH
diff --git a/lib/Utils.Memory/vnlib_mimalloc/Taskfile.yaml b/lib/Utils.Memory/vnlib_mimalloc/Taskfile.yaml
index 62116d7..c1ded6d 100644
--- a/lib/Utils.Memory/vnlib_mimalloc/Taskfile.yaml
+++ b/lib/Utils.Memory/vnlib_mimalloc/Taskfile.yaml
@@ -10,7 +10,8 @@ version: '3'
vars:
DEP_NAME: 'mimalloc'
- PROJECT_NAME: 'vnlib_mimalloc'
+ PROJECT_NAME: 'vnlib_{{ .DEP_NAME }}'
+ ARTIFACTS_OUT: '{{ .PROJECT_DIR }}/{{ .BINARY_DIR }}'
tasks:
@@ -23,14 +24,14 @@ tasks:
BUILD_TYPE: "Release"
CLI_ARGS: "-DENABLE_GREEDY=1 {{ .CLI_ARGS }}"
- - cmd: echo "Your {{ .PROJECT_NAME }} library file can be found in '{{.USER_WORKING_DIR}}/build'"
+ - cmd: echo "Your {{ .PROJECT_NAME }} library file can be found in '{{ .USER_WORKING_DIR }}/build'"
silent: true
debug:
cmds:
- task: build-internal
vars:
- BUILD_TYPE: "Debug"
+ BUILD_TYPE: "debug"
CLI_ARGS: "-DENABLE_GREEDY=1 {{ .CLI_ARGS }}"
build:
@@ -38,8 +39,8 @@ tasks:
cmds:
#init cmake build with greedy enabled
- cmake -B./build -DENABLE_GREEDY=1 {{ .CLI_ARGS }}
- - cmake --build build/ --config Debug
- - cmake --build build/ --config Release
+ - cmake --build build/ --config debug
+ - cmake --build build/ --config release
build-internal:
internal: true
@@ -50,38 +51,39 @@ tasks:
- cmake --build build/ --config {{ .BUILD_TYPE }}
postbuild_success:
- vars:
- ARTIFACTS_OUT: '{{ .PROJECT_DIR }}/{{ .BINARY_DIR }}'
cmds:
#make bin dir
- - cmd: powershell -Command "New-Item -Type Directory -Force -Path '{{ .ARTIFACTS_OUT }}'"
+ - cmd: powershell mkdir -Force '{{ .ARTIFACTS_OUT }}'
ignore_error: true
+
+ - task: pack_parallel
- #get licenses for debug
- - task: licenses
- vars: { TARGET: './build/Debug' }
-
- - task: licenses
- vars: { TARGET: './build/Release' }
+ pack_parallel:
+ internal: true
+ deps:
+ - task: pack_source
- #dynamic debug lib
- - cd build/Debug && tar -czf '{{ .ARTIFACTS_OUT }}/msvc-x64-debug-{{.PROJECT_NAME}}.tgz' .
- #release dll
- - cd build/Release && tar -czf '{{ .ARTIFACTS_OUT }}/msvc-x64-release-{{.PROJECT_NAME}}.tgz' .
+ - task: pack_artifacts
+ vars: { BUILD_TYPE: 'debug' }
+ - task: pack_artifacts
+ vars: { BUILD_TYPE: 'release' }
- #source code
- - task: pack_source
+ #packs binary artifacts for distribution
+ pack_artifacts:
+ internal: true
+ deps:
+ - task: pack_resources
+ vars: { TARGET: './build/{{ .BUILD_TYPE }}' }
+ cmds:
+ - cmd: cd build/{{ .BUILD_TYPE }} && tar -czf '{{ .ARTIFACTS_OUT }}/msvc-x64-{{ .BUILD_TYPE }}-{{ .PROJECT_NAME }}.tgz' .
-
- licenses:
+ pack_resources:
internal: true
cmds:
- #add mimalloc license to binary output
- - powershell -Command "Copy-Item -Path vendor/license -Destination '{{.TARGET}}/{{ .DEP_NAME }}_license.txt'"
- #add my license file
- - powershell -Command "Copy-Item -Path ./license -Destination '{{.TARGET}}/license.txt'"
- #add readme file
- - powershell -Command "Copy-Item -Path ./build.readme.txt -Destination '{{.TARGET}}/readme.txt'"
+ - powershell cp NativeHeapApi.h '{{ .TARGET }}/'
+ - powershell cp vendor/license '{{ .TARGET }}/{{ .DEP_NAME }}_license.txt'
+ - powershell cp license '{{ .TARGET }}/license.txt'
+ - powershell cp build.readme.txt '{{ .TARGET }}/readme.txt'
pack_source:
internal: true
@@ -94,20 +96,21 @@ tasks:
vendor
LICENSE
NativeHeapApi.h
- vnlib_mimalloc.c
+ '{{ .PROJECT_NAME }}.c'
cmds:
#tar up the source
- - tar -czf "{{.TARGET_SOURCE}}" {{ .SOURCE_FILES | join " " }}
+ - tar -czf '{{ .TARGET_SOURCE }}' {{ .SOURCE_FILES | join " " }}
clean:
ignore_error: true
cmds:
- for: [ bin/, build/ ]
- cmd: powershell Remove-Item -Recurse '{{.ITEM}}' -Force
+ cmd: powershell rm -Recurse -Force '{{.ITEM}}'
#called by module for initializing the project, it's not internal but hidden
dev-init:
internal: false
cmds:
- - task: debug \ No newline at end of file
+ - task: debug
+ \ No newline at end of file
diff --git a/lib/Utils.Memory/vnlib_mimalloc/package.json b/lib/Utils.Memory/vnlib_mimalloc/package.json
index add660c..fb6ef71 100644
--- a/lib/Utils.Memory/vnlib_mimalloc/package.json
+++ b/lib/Utils.Memory/vnlib_mimalloc/package.json
@@ -1,10 +1,10 @@
{
"name": "vnlib_mimalloc",
- "version": "0.1.0",
+ "version": "0.0.0",
"output_dir": "bin",
"author": "Vaughn Nugent",
"description": "A cmake cross-platform C89, NativeHeapApi compliant, mimalloc dynamic library. This project includes pre-build Windows x64 binaries as well as the source code for building the entire dynamic library on your system",
- "copyright": "Copyright \u00A9 2023 Vaughn Nugent",
+ "copyright": "Copyright \u00A9 2024 Vaughn Nugent",
"company": "Vaughn Nugent",
- "repository": "https://github.com/VnUgE/VNLib.Core/tree/main/lib/Utils.Memory/vnlib_mimalloc"
+ "repository": "https://github.com/VnUgE/VNLib.Core/tree/master/lib/Utils.Memory/vnlib_mimalloc"
} \ No newline at end of file
diff --git a/lib/Utils.Memory/vnlib_rpmalloc/Taskfile.yaml b/lib/Utils.Memory/vnlib_rpmalloc/Taskfile.yaml
index dc84740..f1c74a0 100644
--- a/lib/Utils.Memory/vnlib_rpmalloc/Taskfile.yaml
+++ b/lib/Utils.Memory/vnlib_rpmalloc/Taskfile.yaml
@@ -10,7 +10,8 @@ version: '3'
vars:
DEP_NAME: 'rpmalloc'
- PROJECT_NAME: 'vnlib_rpmalloc'
+ PROJECT_NAME: 'vnlib_{{ .DEP_NAME }}'
+ ARTIFACTS_OUT: '{{ .PROJECT_DIR }}/{{ .BINARY_DIR }}'
tasks:
@@ -23,14 +24,14 @@ tasks:
BUILD_TYPE: "Release"
CLI_ARGS: "-DENABLE_GREEDY=1 {{ .CLI_ARGS }}"
- - cmd: echo "Your {{ .PROJECT_NAME }} library file can be found in '{{.USER_WORKING_DIR}}/build'"
+ - cmd: echo "Your {{ .PROJECT_NAME }} library file can be found in '{{ .USER_WORKING_DIR }}/build'"
silent: true
debug:
cmds:
- task: build-internal
vars:
- BUILD_TYPE: "Debug"
+ BUILD_TYPE: "debug"
CLI_ARGS: "-DENABLE_GREEDY=1 {{ .CLI_ARGS }}"
build:
@@ -38,8 +39,8 @@ tasks:
cmds:
#init cmake build with greedy enabled
- cmake -B./build -DENABLE_GREEDY=1 {{ .CLI_ARGS }}
- - cmake --build build/ --config Debug
- - cmake --build build/ --config Release
+ - cmake --build build/ --config debug
+ - cmake --build build/ --config release
build-internal:
internal: true
@@ -50,38 +51,39 @@ tasks:
- cmake --build build/ --config {{ .BUILD_TYPE }}
postbuild_success:
- vars:
- ARTIFACTS_OUT: '{{ .PROJECT_DIR }}/{{ .BINARY_DIR }}'
cmds:
#make bin dir
- - cmd: powershell -Command "New-Item -Type Directory -Force -Path '{{ .ARTIFACTS_OUT }}'"
+ - cmd: powershell mkdir -Force '{{ .ARTIFACTS_OUT }}'
ignore_error: true
+
+ - task: pack_parallel
- #get licenses for debug
- - task: licenses
- vars: { TARGET: './build/Debug' }
-
- - task: licenses
- vars: { TARGET: './build/Release' }
+ pack_parallel:
+ internal: true
+ deps:
+ - task: pack_source
- #dynamic debug lib
- - cd build/Debug && tar -czf '{{ .ARTIFACTS_OUT }}/msvc-x64-debug-{{.PROJECT_NAME}}.tgz' .
- #release dll
- - cd build/Release && tar -czf '{{ .ARTIFACTS_OUT }}/msvc-x64-release-{{.PROJECT_NAME}}.tgz' .
+ - task: pack_artifacts
+ vars: { BUILD_TYPE: 'debug' }
+ - task: pack_artifacts
+ vars: { BUILD_TYPE: 'release' }
- #source code
- - task: pack_source
+ #packs binary artifacts for distribution
+ pack_artifacts:
+ internal: true
+ deps:
+ - task: pack_resources
+ vars: { TARGET: './build/{{ .BUILD_TYPE }}' }
+ cmds:
+ - cmd: cd build/{{ .BUILD_TYPE }} && tar -czf '{{ .ARTIFACTS_OUT }}/msvc-x64-{{ .BUILD_TYPE }}-{{ .PROJECT_NAME }}.tgz' .
-
- licenses:
+ pack_resources:
internal: true
cmds:
- #add license to binary output
- - powershell -Command "Copy-Item -Path vendor/license -Destination '{{.TARGET}}/{{ .DEP_NAME }}_license.txt'"
- #add my license file
- - powershell -Command "Copy-Item -Path ./license -Destination '{{.TARGET}}/license.txt'"
- #add readme file
- - powershell -Command "Copy-Item -Path ./build.readme.txt -Destination '{{.TARGET}}/readme.txt'"
+ - powershell cp NativeHeapApi.h '{{ .TARGET }}/'
+ - powershell cp vendor/license '{{ .TARGET }}/{{ .DEP_NAME }}_license.txt'
+ - powershell cp license '{{ .TARGET }}/license.txt'
+ - powershell cp build.readme.txt '{{ .TARGET }}/readme.txt'
pack_source:
internal: true
@@ -94,20 +96,21 @@ tasks:
vendor
LICENSE
NativeHeapApi.h
- vnlib_rpmalloc.c
+ '{{ .PROJECT_NAME }}.c'
cmds:
#tar up the source
- - tar -czf "{{.TARGET_SOURCE}}" {{ .SOURCE_FILES | join " " }}
+ - tar -czf '{{ .TARGET_SOURCE }}' {{ .SOURCE_FILES | join " " }}
clean:
ignore_error: true
cmds:
- for: [ bin/, build/ ]
- cmd: powershell Remove-Item -Recurse '{{.ITEM}}' -Force
+ cmd: powershell rm -Recurse -Force '{{.ITEM}}'
- #called by module for initializing the project
+ #called by module for initializing the project, it's not internal but hidden
dev-init:
internal: false
cmds:
- - task: debug \ No newline at end of file
+ - task: debug
+ \ No newline at end of file
diff --git a/lib/Utils.Memory/vnlib_rpmalloc/package.json b/lib/Utils.Memory/vnlib_rpmalloc/package.json
index 5235262..9fbd64c 100644
--- a/lib/Utils.Memory/vnlib_rpmalloc/package.json
+++ b/lib/Utils.Memory/vnlib_rpmalloc/package.json
@@ -1,10 +1,10 @@
{
"name": "vnlib_rpmalloc",
- "version": "0.1.4",
+ "version": "0.0.0",
"output_dir": "bin",
"author": "Vaughn Nugent",
"description": "A project to maintain an x64 Windows dynamic and static library for RpMalloc by Mattias Jansson for use with the NativeHeapApi to for VNLib.Utils native heap loading. This project includes pre-build Windows x64 binaries as well as the source code for building the dynamic and static libraries on your system",
- "copyright": "Copyright \u00A9 2023 Vaughn Nugent",
+ "copyright": "Copyright \u00A9 2024 Vaughn Nugent",
"company": "Vaughn Nugent",
- "repository": "https://github.com/VnUgE/VNLib.Core/tree/main/lib/Utils.Memory/vnlib_rpmalloc"
+ "repository": "https://github.com/VnUgE/VNLib.Core/tree/master/lib/Utils.Memory/vnlib_rpmalloc"
} \ No newline at end of file
diff --git a/lib/Utils/src/VNLib.Utils.csproj b/lib/Utils/src/VNLib.Utils.csproj
index 83d245c..2847afa 100644
--- a/lib/Utils/src/VNLib.Utils.csproj
+++ b/lib/Utils/src/VNLib.Utils.csproj
@@ -23,7 +23,7 @@
<PackageTags>vnlib,utils,utilities,vnlib utils,utility</PackageTags>
<Description>.NET/8.0 Utilities library for high-performance common operations. Utilities and abstractions for building and diagnosing native memory implementations. Dyanmic native library loading, IO, extensions, data encoding, resource access, and asynchronous cooperation primitives.</Description>
<PackageProjectUrl>https://www.vaughnnugent.com/resources/software/modules/VNLib.Core</PackageProjectUrl>
- <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/main/lib/Utils</RepositoryUrl>
+ <RepositoryUrl>https://github.com/VnUgE/VNLib.Core/tree/master/lib/Utils</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>