Skip to content

Commit d316fd3

Browse files
authored
[elixir] Update cargo config (#259)
1 parent f66a526 commit d316fd3

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.changeset/cuddly-humans-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"elixir-sdk": patch
3+
---
4+
5+
Fix cargo configuration

elixir-sdk/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ defmodule YourApp.Application do
4545

4646
children = [
4747
# ... other children ...
48-
{Eppo.Server, config}
48+
{EppoSdk.Server, config}
4949
]
5050

5151
opts = [strategy: :one_for_one, name: YourApp.Supervisor]
@@ -56,11 +56,11 @@ end
5656

5757
### Implementing an Assignment Logger
5858

59-
The assignment logger is used to track experiment assignments for analytics. Implement the `Eppo.AssignmentLogger` behaviour in your application:
59+
The assignment logger is used to track experiment assignments for analytics. Implement the `EppoSdk.AssignmentLogger` behaviour in your application:
6060

6161
```elixir
6262
defmodule YourApp.AssignmentLogger do
63-
@behaviour Eppo.AssignmentLogger
63+
@behaviour EppoSdk.AssignmentLogger
6464

6565
@impl true
6666
def log_assignment(event) do
@@ -75,7 +75,7 @@ Once the server is started, you can access the client instance anywhere in your
7575

7676
```elixir
7777
# Get the client instance
78-
client = Eppo.Server.get_instance()
78+
client = EppoSdk.Server.get_instance()
7979

8080
# Use the client to evaluate feature flags
8181
assignment = EppoSdk.Client.get_string_assignment(

elixir-sdk/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ defmodule EppoSdk.MixProject do
5050
"Eppo" => "https://www.geteppo.com",
5151
"Documentation" => "https://docs.geteppo.com/sdks/server-sdks/"
5252
},
53-
files: ~w(lib native/sdk_core mix.exs README.md LICENSE)
53+
files: ~w(lib native/sdk_core mix.exs README.md)
5454
]
5555
end
5656
end

elixir-sdk/.cargo/config.toml renamed to elixir-sdk/native/sdk_core/.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
rustflags = [
33
"-C", "link-arg=-undefined",
44
"-C", "link-arg=dynamic_lookup",
5-
]
5+
]

elixir-sdk/.cargo/config.toml.template renamed to elixir-sdk/native/sdk_core/.cargo/config.toml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ rustflags = [
77
# Copy this file to .cargo/config.toml (without the .template extension)
88
# to use the local eppo_core package during development.
99
[patch.crates-io]
10-
eppo_core = { path = "../eppo_core" }
10+
eppo_core = { path = "../../../eppo_core" }

0 commit comments

Comments
 (0)