Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Exstatic Public (the Github repo only) #11

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v0.1.3] - 2024-02-10
## [v.0.2.0] - 2025-02-13

### Changed
- The way precompiled binaries are downloaded from Github releases.

## [v0.1.3] - 2025-02-10

### Fixed

- 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`


## [v0.1.2] - 2024-02-08
## [v0.1.2] - 2025-02-08

### Fixed

- **Enabled authenticated downloads from the Exstatic repo:**
- 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.
- Users must provide a Github Personal Access Token (PAT) (in `EXSTATIC_GITHUB_TOKEN` env var) with sufficient priveleges to download precompiled binaries.

## [v0.1.1] - 2024-02-07
## [v0.1.1] - 2025-02-07

### Added

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

## [v0.1.0] - 2024-02-07
## [v0.1.0] - 2025-02-07

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

[Unreleased]: https://github.com/Intellection/exstatic/compare/v0.1.3...HEAD
[Unreleased]: https://github.com/Intellection/exstatic/compare/v0.2.0...HEAD
[v0.2.0]: https://github.com/Intellection/exstatic/compare/v0.2.0...v0.1.3
[v0.1.3]: https://github.com/Intellection/exstatic/compare/v0.1.3...v0.1.2
[v0.1.2]: https://github.com/Intellection/exstatic/compare/v0.1.2...v0.1.1
[v0.1.1]: https://github.com/Intellection/exstatic/compare/v0.1.1...v0.1.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Add `exstatic` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:exstatic, "~> 0.1.3", organization: "zappi"}
{:exstatic, "~> 0.2.0", organization: "zappi"}
]
end
```
Expand Down
6 changes: 3 additions & 3 deletions lib/exstatic/native.ex
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
defmodule Exstatic.Native do
@moduledoc false
version = Mix.Project.config()[:version]
config = Mix.Project.config()

use RustlerPrecompiled,
otp_app: :exstatic,
crate: "exstatic",
base_url: {Exstatic.ReleaseHelper, :github_release_url!},
base_url: "#{config[:source_url]}/releases/download/v#{config[:version]}",
force_build: System.get_env("EXSTATIC_BUILD") == "true",
nif_versions: ["2.16"],
version: version,
version: config[:version],
targets: ~w(
aarch64-apple-darwin
x86_64-apple-darwin
Expand Down
99 changes: 0 additions & 99 deletions lib/exstatic/release_helper.ex

This file was deleted.

2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Exstatic.MixProject do
use Mix.Project

@version "0.1.3"
@version "0.2.0"
@repo "Intellection/exstatic"
@source_url "https://github.com/#{@repo}"

Expand Down