-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
155 additions
and
110 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[target.x86_64-pc-windows-gnu] | ||
linker = "x86_64-w64-mingw32-gcc" | ||
ar = "x86_64-w64-mingw32-gcc-ar" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class Hemlock < Formula | ||
desc "Vendor remote files to local folder - CLI" | ||
homepage "<https://github.com/bharathvaj-ganesan/getfilesize-cli>" | ||
url "<https://github.com/bharathvaj-ganesan/getfilesize-cli/releases/download/v1.0.1/getfilesize.tar.gz>" | ||
sha256 "6c03100f5b1f8e61f5d49efab759a2efcdbcc4ac2677fcf98e7317ec660e6994" | ||
license "MIT" | ||
version "1.0.1" | ||
|
||
def install | ||
bin.install "hemlock" | ||
end | ||
end |
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,15 @@ | ||
build-add: build-linux build-mac build-x86_64_windows | ||
|
||
build-linux: | ||
cargo build --release --target=xy | ||
|
||
build-mac: | ||
cargo build --release --target=x86_64-pc-windows-gnu | ||
|
||
build-x86_64_windows: | ||
cargo build --release --target=x86_64-pc-windows-gnu | ||
|
||
calc-sha: | ||
shasum -a 256 getfilesize.tar.gz | ||
|
||
.PHONY: build-linux \ |
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,4 +1,4 @@ | ||
version: 1 | ||
vendor_dir: vendor2 | ||
vendor_dir: vendor | ||
external_deps: | ||
- github.com/bufbuild/protoc-gen-validate/validate/validate.proto@master | ||
- github.com/MadL1me/RhythmGE/src/index.scss@68f7379 |
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,28 @@ | ||
use std::fmt; | ||
|
||
#[derive(Debug)] | ||
pub struct ErrorBase { | ||
details: String, | ||
} | ||
|
||
impl ErrorBase { | ||
pub fn new(msg: &str) -> ErrorBase { | ||
ErrorBase { details: msg.to_string() } | ||
} | ||
|
||
pub fn new_box(msg: &str) -> Box<ErrorBase> { | ||
Box::new(ErrorBase::new(msg)) | ||
} | ||
} | ||
|
||
impl fmt::Display for ErrorBase { | ||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
write!(f, "{}", self.details) | ||
} | ||
} | ||
|
||
impl std::error::Error for ErrorBase { | ||
fn description(&self) -> &str { | ||
&self.details | ||
} | ||
} |
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