Skip to content

Commit

Permalink
add metadata to mix.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihuizhang17 committed Feb 18, 2024
1 parent 07a295d commit d8fed9b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/helloworld/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule Helloworld.Mixfile do
[
{:grpc, "~> 0.7"},
{:grpc_reflection, path: "../.."},
{:protobuf, "~> 0.11"},
{:protobuf, "~> 0.11.1", organization: "tubitv"},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false}
]
end
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld/mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"gun": {:hex, :gun, "2.0.1", "160a9a5394800fcba41bc7e6d421295cf9a7894c2252c0678244948e3336ad73", [:make, :rebar3], [{:cowlib, "2.12.1", [hex: :cowlib, repo: "hexpm", optional: false]}], "hexpm", "a10bc8d6096b9502205022334f719cc9a08d9adcfbfc0dbee9ef31b56274a20b"},
"hpax": {:hex, :hpax, "0.1.2", "09a75600d9d8bbd064cdd741f21fc06fc1f4cf3d0fcc335e5aa19be1a7235c84", [:mix], [], "hexpm", "2c87843d5a23f5f16748ebe77969880e29809580efdaccd615cd3bed628a8c13"},
"mint": {:hex, :mint, "1.5.1", "8db5239e56738552d85af398798c80648db0e90f343c8469f6c6d8898944fb6f", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "4a63e1e76a7c3956abd2c72f370a0d0aecddc3976dea5c27eccbecfa5e7d5b1e"},
"protobuf": {:hex, :protobuf, "0.12.0", "58c0dfea5f929b96b5aa54ec02b7130688f09d2de5ddc521d696eec2a015b223", [:mix], [{:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "75fa6cbf262062073dd51be44dd0ab940500e18386a6c4e87d5819a58964dc45"},
"protobuf": {:hex, :protobuf, "0.11.1", "6c5138808c5494c5deae2844413e0be1911b90c1c1ef065d71e3e9617d1bb5c4", [:mix], [{:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm:tubitv", "9a30df55b3939bcaa4ee0c807fe7c5b7230e27acccc28ed0c4e3788b89cbe041"},
"ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"},
"telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"},
}
8 changes: 8 additions & 0 deletions examples/helloworld/priv/protos/helloworld.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ option java_outer_classname = "HelloWorldProto";
option objc_class_prefix = "HLW";

import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";

package helloworld;

Expand All @@ -18,6 +19,13 @@ service Greeter {
// The request message containing the user's name.
message HelloRequest {
string name = 1;

message TimeWindow {
google.protobuf.Timestamp start = 1;
google.protobuf.Timestamp end = 2;
}

TimeWindow updated_time_window = 2;
}

// The response message containing the greetings
Expand Down
18 changes: 16 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
defmodule GrpcReflection.MixProject do
use Mix.Project

@version "0.1.0"
@description "gRPC reflection server for Elixir"

def project do
[
app: :grpc_reflection,
version: "0.1.0",
version: @version,
description: @description,
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
aliases: aliases(),
test_coverage: [
ignore_modules: [
Expand Down Expand Up @@ -37,7 +42,7 @@ defmodule GrpcReflection.MixProject do
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:grpc, "~> 0.7"},
{:protobuf, "~> 0.11"}
{:protobuf, "~> 0.11.1", organization: "tubitv"}
]
end

Expand Down Expand Up @@ -86,4 +91,13 @@ defmodule GrpcReflection.MixProject do
end
)
end

defp package do
%{
name: "grpc_reflection",
files: ~w(.formatter.exs mix.exs lib),
links: %{"GitHub" => "https://github.com/elixir-grpc/grpc-reflection"},
licenses: ["Apache-2.0"]
}
end
end
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"hpax": {:hex, :hpax, "0.1.2", "09a75600d9d8bbd064cdd741f21fc06fc1f4cf3d0fcc335e5aa19be1a7235c84", [:mix], [], "hexpm", "2c87843d5a23f5f16748ebe77969880e29809580efdaccd615cd3bed628a8c13"},
"jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"},
"mint": {:hex, :mint, "1.5.1", "8db5239e56738552d85af398798c80648db0e90f343c8469f6c6d8898944fb6f", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "4a63e1e76a7c3956abd2c72f370a0d0aecddc3976dea5c27eccbecfa5e7d5b1e"},
"protobuf": {:hex, :protobuf, "0.12.0", "58c0dfea5f929b96b5aa54ec02b7130688f09d2de5ddc521d696eec2a015b223", [:mix], [{:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "75fa6cbf262062073dd51be44dd0ab940500e18386a6c4e87d5819a58964dc45"},
"protobuf": {:hex, :protobuf, "0.11.1", "6c5138808c5494c5deae2844413e0be1911b90c1c1ef065d71e3e9617d1bb5c4", [:mix], [{:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm:tubitv", "9a30df55b3939bcaa4ee0c807fe7c5b7230e27acccc28ed0c4e3788b89cbe041"},
"ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"},
"telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"},
}

0 comments on commit d8fed9b

Please sign in to comment.