-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from forensicmatt/rewrite
Rewrite
- Loading branch information
Showing
20 changed files
with
1,071 additions
and
784 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,32 @@ | ||
[package] | ||
name = "RustyUsn" | ||
version = "0.5.0" | ||
authors = ["Matthew Seyer <https://github.com/forensicmatt/RustyUsn>"] | ||
|
||
[lib] | ||
name = "rustyusn" | ||
crate-type = ["cdylib","lib"] | ||
name = "rusty_usn" | ||
description = "A fast and cross platform USN Parser written in Rust that outputs to JSONL" | ||
version = "1.0.0" | ||
authors = ["Matthew Seyer - Github: https://github.com/forensicmatt - Twitter: @forensic_matt"] | ||
edition = "2018" | ||
homepage = "https://github.com/forensicmatt/RustyUsn" | ||
repository = "https://github.com/forensicmatt/RustyUsn" | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
|
||
[dependencies] | ||
lazy_static = "*" | ||
regex = "0.1.80" | ||
byteorder = "*" | ||
clap = "*" | ||
time = "*" | ||
seek_bufread = "~1.2" | ||
bitflags = "0.7" | ||
serde = "0.9" | ||
serde_derive = "0.9" | ||
serde_json = "0.9" | ||
jmespath = "^0.1.1" | ||
|
||
[dependencies.r-winstructs] | ||
version = "*" | ||
branch = "master" | ||
git = "https://github.com/forensicmatt/r-winstructs" | ||
log = "0.4" | ||
fern = "0.5" | ||
chrono = "0.4" | ||
regex = "1" | ||
lazy_static = "1.3.0" | ||
bitflags = "1.0" | ||
encoding = "0.2" | ||
serde = "1.0" | ||
serde_json = "1.0" | ||
byteorder = "1.3.1" | ||
winstructs = {git = "https://github.com/omerbenamram/winstructs.git", branch = "master"} | ||
rayon = {version = "1.0.3", optional = true} | ||
|
||
[dependencies.chrono] | ||
version = "*" | ||
features = ["serde", "rustc-serialize"] | ||
[features] | ||
default = ["multithreading"] | ||
multithreading = ["rayon"] | ||
|
||
[dependencies.cpython] | ||
version = "*" | ||
default-features = false | ||
features = ["python27-sys"] | ||
[[bin]] | ||
name = "rusty_usn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
trigger: | ||
branches: | ||
include: ['*'] | ||
tags: | ||
include: ['*'] | ||
|
||
strategy: | ||
matrix: | ||
windows-stable: | ||
imageName: 'vs2017-win2016' | ||
target: 'x86_64-pc-windows-msvc' | ||
rustup_toolchain: stable | ||
mac-stable: | ||
imageName: 'macos-10.13' | ||
target: 'x86_64-apple-darwin' | ||
rustup_toolchain: stable | ||
linux-stable: | ||
imageName: 'ubuntu-16.04' | ||
target: 'x86_64-unknown-linux-gnu' | ||
rustup_toolchain: stable | ||
|
||
pool: | ||
vmImage: $(imageName) | ||
|
||
steps: | ||
- script: | | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN | ||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" | ||
displayName: Install rust | ||
condition: ne( variables['Agent.OS'], 'Windows_NT' ) | ||
- script: | | ||
curl -sSf -o rustup-init.exe https://win.rustup.rs | ||
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN% | ||
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin" | ||
displayName: Windows install rust | ||
condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
- script: cargo build --release | ||
displayName: Cargo build | ||
- script: cargo test | ||
displayName: Cargo test | ||
- bash: | | ||
MY_TAG="$(Build.SourceBranch)" | ||
MY_TAG=${MY_TAG#refs/tags/} | ||
echo $MY_TAG | ||
echo "##vso[task.setvariable variable=build.my_tag]$MY_TAG" | ||
displayName: "Create tag variable" | ||
- bash: | | ||
DATE="$(date +%Y-%m-%d)" | ||
echo "##vso[task.setvariable variable=build.date]$DATE" | ||
displayName: "Create date variable" | ||
- bash: | | ||
echo "##vso[task.setvariable variable=build.binary_name]rusty_usn.exe" | ||
displayName: "Create date variable" | ||
condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
- bash: | | ||
echo "##vso[task.setvariable variable=build.binary_name]rusty_usn" | ||
displayName: "Create date variable" | ||
condition: ne( variables['Agent.OS'], 'Windows_NT' ) | ||
- task: CopyFiles@2 | ||
displayName: Copy assets | ||
inputs: | ||
sourceFolder: '$(Build.SourcesDirectory)/target/release' | ||
contents: | | ||
$(build.binary_name) | ||
targetFolder: '$(Build.BinariesDirectory)/$(build.binary_name)' | ||
- task: ArchiveFiles@2 | ||
displayName: Gather assets | ||
inputs: | ||
rootFolderOrFile: '$(Build.BinariesDirectory)/$(build.binary_name)' | ||
archiveType: 'tar' | ||
tarCompression: 'gz' | ||
archiveFile: '$(Build.ArtifactStagingDirectory)/rusty_usn-$(build.my_tag)-$(TARGET).tar.gz' | ||
- task: GithubRelease@0 | ||
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) | ||
inputs: | ||
gitHubConnection: 'Github' | ||
repositoryName: 'forensicmatt/RustyUsn' | ||
action: 'edit' | ||
target: '$(build.sourceVersion)' | ||
tagSource: 'manual' | ||
tag: '$(build.my_tag)' | ||
assets: '$(Build.ArtifactStagingDirectory)/rusty_usn-$(build.my_tag)-$(TARGET).tar.gz' | ||
title: '$(build.my_tag) - $(build.date)' | ||
assetUploadMode: 'replace' | ||
addChangeLog: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.