Skip to content

Commit

Permalink
Up to date!
Browse files Browse the repository at this point in the history
  • Loading branch information
zakstucke committed Jan 24, 2024
1 parent eae1d08 commit 339dd70
Show file tree
Hide file tree
Showing 13 changed files with 91 additions and 76 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto eol=lf
.zetch.lock linguist-generated=true
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ jobs:
run: |
./dev_scripts/pkg.sh ver_py_update ${{ inputs.py_version }}
- name: Install Node.js
# Js project
- name: "Install Bun, no npm should be needed"
if: ${{ inputs.js_release }}
uses: actions/setup-node@v2
uses: oven-sh/setup-bun@v1
with:
node-version: "20"
cache: npm
cache-dependency-path: "js/package-lock.json"
- name: Update JS version
bun-version: latest
- name: Install js dependencies
if: ${{ inputs.js_release }}
run: |
./dev_scripts/pkg.sh ver_js_update ${{ inputs.js_version }}
cd ./js
bun install
# Formatting and checking uses nightly rather than stable:
- uses: dtolnay/rust-toolchain@nightly
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yml.zetch
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ jobs:
run: |
./dev_scripts/pkg.sh ver_py_update ${{ inputs.py_version }}

- name: Install Node.js
# Js project
- name: "Install Bun, no npm should be needed"
if: ${{ inputs.js_release }}
uses: actions/setup-node@v2
uses: oven-sh/setup-bun@v1
with:
node-version: "20"
cache: npm
cache-dependency-path: 'js/package-lock.json'
- name: Update JS version
bun-version: latest
- name: Install js dependencies
if: ${{ inputs.js_release }}
run: |
./dev_scripts/pkg.sh ver_js_update ${{ inputs.js_version }}
cd ./js
bun install

# Formatting and checking uses nightly rather than stable:
- uses: dtolnay/rust-toolchain@nightly
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v2
# Js project
- name: "Install Bun, no npm should be needed"
uses: oven-sh/setup-bun@v1
with:
node-version: "20"
cache: npm
cache-dependency-path: "js/package-lock.json"

- name: Install Node.js dependencies
bun-version: latest
- name: Install js dependencies
run: |
npm --prefix ./js install
cd ./js
bun install
- name: Run tests
run: |
Expand Down
26 changes: 13 additions & 13 deletions .zetch.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ pip install bitbazaar_rs

Binaries are available for:

- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7l`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64` & `arm64`
- **Windows**: `amd64` & `win32`
- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7`, `ppc64le`, `s390x`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64`, `aarch64`
- **Windows**: `x86_64`, `aarch64`, `i686`

If your platform isn't supported, [file an issue](https://github.com/zakstucke/bitbazaar/issues).

### Rust

Expand Down
8 changes: 5 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ pip install bitbazaar_rs

Binaries are available for:

- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7l`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64` & `arm64`
- **Windows**: `amd64` & `win32`
- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7`, `ppc64le`, `s390x`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64`, `aarch64`
- **Windows**: `x86_64`, `aarch64`, `i686`

If your platform isn't supported, [file an issue](https://github.com/zakstucke/bitbazaar/issues).

### Rust

Expand Down
8 changes: 5 additions & 3 deletions js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ pip install bitbazaar_rs

Binaries are available for:

- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7l`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64` & `arm64`
- **Windows**: `amd64` & `win32`
- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7`, `ppc64le`, `s390x`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64`, `aarch64`
- **Windows**: `x86_64`, `aarch64`, `i686`

If your platform isn't supported, [file an issue](https://github.com/zakstucke/bitbazaar/issues).

### Rust

Expand Down
8 changes: 5 additions & 3 deletions py/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ pip install bitbazaar_rs

Binaries are available for:

- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7l`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64` & `arm64`
- **Windows**: `amd64` & `win32`
- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7`, `ppc64le`, `s390x`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64`, `aarch64`
- **Windows**: `x86_64`, `aarch64`, `i686`

If your platform isn't supported, [file an issue](https://github.com/zakstucke/bitbazaar/issues).

### Rust

Expand Down
41 changes: 21 additions & 20 deletions py_rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
[package]
name = "bitbazaar_rs"
version = "0.0.3"
edition = "2021"
readme = "README.md"
license = "MIT"
# This crate should only be released as a python package, so disable any rust side crates publishing:
publish = false

[lib]
name = "bitbazaar_rs"
crate-type = ["cdylib"]
path = "src/lib.rs"

# Add your dependencies here
[dependencies]
colored = '2'
error-stack = '0.4'
tracing = '0.1'
tracing = "0.1"
error-stack = "0.4"

[dependencies.bitbazaar]
features = []
Expand All @@ -11,26 +26,12 @@ version = '0.0.20'
features = ['extension-module', 'chrono', 'generate-import-lib']
version = '0.20.0'

[lib]
crate-type = ['cdylib']
name = 'bitbazaar_rs'
path = 'src/lib.rs'

[package]
edition = '2021'
license = 'MIT'
name = 'bitbazaar_rs'
publish = false
readme = 'README.md'
version = '0.0.3'

[profile]

[profile.profiler]
debug = true
inherits = "release" # Adds on top of the default release profile
incremental = true
inherits = 'release'
debug = true
strip = false

# Modifying the test runtime (from release is just so much faster)
[profile.test]
inherits = 'release'
inherits = "release" # Adds on top of the default release profile
8 changes: 5 additions & 3 deletions py_rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ pip install bitbazaar_rs

Binaries are available for:

- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7l`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64` & `arm64`
- **Windows**: `amd64` & `win32`
- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7`, `ppc64le`, `s390x`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64`, `aarch64`
- **Windows**: `x86_64`, `aarch64`, `i686`

If your platform isn't supported, [file an issue](https://github.com/zakstucke/bitbazaar/issues).

### Rust

Expand Down
8 changes: 5 additions & 3 deletions rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ pip install bitbazaar_rs

Binaries are available for:

- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7l`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64` & `arm64`
- **Windows**: `amd64` & `win32`
- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7`, `ppc64le`, `s390x`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64`, `aarch64`
- **Windows**: `x86_64`, `aarch64`, `i686`

If your platform isn't supported, [file an issue](https://github.com/zakstucke/bitbazaar/issues).

### Rust

Expand Down
8 changes: 5 additions & 3 deletions zetches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ pip install bitbazaar_rs

Binaries are available for:

- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7l`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64` & `arm64`
- **Windows**: `amd64` & `win32`
- **Linux**: `x86_64`, `aarch64`, `i686`, `armv7`, `ppc64le`, `s390x`, `musl-x86_64` & `musl-aarch64`
- **MacOS**: `x86_64`, `aarch64`
- **Windows**: `x86_64`, `aarch64`, `i686`

If your platform isn't supported, [file an issue](https://github.com/zakstucke/bitbazaar/issues).

### Rust

Expand Down

0 comments on commit 339dd70

Please sign in to comment.