Skip to content

Commit 3aa8ee2

Browse files
committed
Moving main.rs to src/bin
1 parent 1289ee5 commit 3aa8ee2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ description = "MCP server for core Elastisearch features"
88
homepage = "https://github.com/elastic/mcp-server-elasticsearch"
99
repository = "https://github.com/elastic/mcp-server-elasticsearch"
1010

11+
default-run = "elasticsearch-core-mcp-server"
12+
1113
[dependencies]
1214
# Base stuff
1315
anyhow = "1.0"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ COPY Cargo.toml Cargo.lock ./
1313
# Cache dependencies
1414
RUN --mount=type=cache,target=/usr/local/cargo/registry \
1515
--mount=type=cache,target=/app/target \
16-
mkdir -p ./src && \
17-
echo "pub fn main() {}" > ./src/main.rs && \
16+
mkdir -p ./src/bin && \
17+
echo "pub fn main() {}" > ./src/bin/elasticsearch-core-mcp-server.rs && \
1818
cargo build --release
1919

2020
COPY src ./src/
File renamed without changes.

0 commit comments

Comments
 (0)