Skip to content

Commit 8b86199

Browse files
authored
Merge pull request #11 from Intellection/make-exstatic-public
Make Exstatic Public (the Github repo only)
2 parents bd38583 + 6653ef1 commit 8b86199

File tree

5 files changed

+16
-109
lines changed

5 files changed

+16
-109
lines changed

CHANGELOG.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
## [v0.1.3] - 2024-02-10
10+
## [v.0.2.0] - 2025-02-13
11+
12+
### Changed
13+
- The way precompiled binaries are downloaded from Github releases.
14+
15+
## [v0.1.3] - 2025-02-10
1116

1217
### Fixed
1318

1419
- Includes the native source code in the hex release if folks want to build rust backend locally (can be done by setting `EXSTATIC_BUILD=true`
1520

1621

17-
## [v0.1.2] - 2024-02-08
22+
## [v0.1.2] - 2025-02-08
1823

1924
### Fixed
2025

2126
- **Enabled authenticated downloads from the Exstatic repo:**
2227
- Exstatic is a private, direct public URLs are not an option. In v0.1.2 we implement GitHub's private asset download flow, for retrieving the NIF binaries.
2328
- Users must provide a Github Personal Access Token (PAT) (in `EXSTATIC_GITHUB_TOKEN` env var) with sufficient priveleges to download precompiled binaries.
2429

25-
## [v0.1.1] - 2024-02-07
30+
## [v0.1.1] - 2025-02-07
2631

2732
### Added
2833

@@ -40,12 +45,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4045
- PRs that modify native code or the `release.yml` file.
4146
- Uploads precompiled NIFs to GitHub Releases when a tag is pushed.
4247

43-
## [v0.1.0] - 2024-02-07
48+
## [v0.1.0] - 2025-02-07
4449

4550
### Added
4651
Initial Release: Introduced Exstatic, a statistical distribution library for Elixir with native Rust implementations.
4752

48-
[Unreleased]: https://github.com/Intellection/exstatic/compare/v0.1.3...HEAD
53+
[Unreleased]: https://github.com/Intellection/exstatic/compare/v0.2.0...HEAD
54+
[v0.2.0]: https://github.com/Intellection/exstatic/compare/v0.2.0...v0.1.3
4955
[v0.1.3]: https://github.com/Intellection/exstatic/compare/v0.1.3...v0.1.2
5056
[v0.1.2]: https://github.com/Intellection/exstatic/compare/v0.1.2...v0.1.1
5157
[v0.1.1]: https://github.com/Intellection/exstatic/compare/v0.1.1...v0.1.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Add `exstatic` to your list of dependencies in `mix.exs`:
4141
```elixir
4242
def deps do
4343
[
44-
{:exstatic, "~> 0.1.3", organization: "zappi"}
44+
{:exstatic, "~> 0.2.0", organization: "zappi"}
4545
]
4646
end
4747
```

lib/exstatic/native.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
defmodule Exstatic.Native do
22
@moduledoc false
3-
version = Mix.Project.config()[:version]
3+
config = Mix.Project.config()
44

55
use RustlerPrecompiled,
66
otp_app: :exstatic,
77
crate: "exstatic",
8-
base_url: {Exstatic.ReleaseHelper, :github_release_url!},
8+
base_url: "#{config[:source_url]}/releases/download/v#{config[:version]}",
99
force_build: System.get_env("EXSTATIC_BUILD") == "true",
1010
nif_versions: ["2.16"],
11-
version: version,
11+
version: config[:version],
1212
targets: ~w(
1313
aarch64-apple-darwin
1414
x86_64-apple-darwin

lib/exstatic/release_helper.ex

Lines changed: 0 additions & 99 deletions
This file was deleted.

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Exstatic.MixProject do
22
use Mix.Project
33

4-
@version "0.1.3"
4+
@version "0.2.0"
55
@repo "Intellection/exstatic"
66
@source_url "https://github.com/#{@repo}"
77

0 commit comments

Comments
 (0)