Skip to content
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
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
.PHONY: run proto

run:
cd cmd && go run .
proto:
cd proto && buf generate
./scripts/post_generation.sh
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,9 @@ dragonfly-plugins/
- **[Protocol Buffer Definitions](plugin/proto/types/plugin.proto)** - API reference
- **[Plugin Architecture](docs/plugin-architecture.md)** - Design documentation


## Protobuf generation
to generate our protobuf types, you will need to install [buf](https://buf.build/docs/cli/installation/) and then run
```
make proto
```
1 change: 0 additions & 1 deletion dragonfly
Submodule dragonfly deleted from 930c98
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module github.com/secmc/plugin

go 1.25.0

replace github.com/df-mc/dragonfly => ./dragonfly

require (
github.com/df-mc/dragonfly v0.10.10-0.20251115132555-564b905699ba
github.com/didntpot/pregdk v0.0.0-20251104095621-63cf2e4d7716
Expand Down Expand Up @@ -37,4 +35,4 @@ require (
golang.org/x/text v0.27.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)
)
30 changes: 0 additions & 30 deletions proto/Makefile

This file was deleted.

4 changes: 0 additions & 4 deletions proto/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions proto/buf.gen.cpp.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions proto/buf.gen.php.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions proto/buf.gen.py.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions proto/buf.gen.rs.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions proto/buf.gen.ts.yaml

This file was deleted.

35 changes: 35 additions & 0 deletions proto/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,38 @@ plugins:
out: generated
opt:
- paths=source_relative
# C++
- remote: buf.build/protocolbuffers/cpp
out: generated/cpp
- remote: buf.build/grpc/cpp
out: generated/cpp

# Php
- remote: buf.build/protocolbuffers/php
out: generated/php
- remote: buf.build/grpc/php
out: generated/php

# Python
- remote: buf.build/protocolbuffers/python
out: generated/python
- remote: buf.build/grpc/python
out: generated/python

# Rust
- remote: buf.build/community/neoeinstein-prost
out: generated/rust
- remote: buf.build/community/neoeinstein-tonic
out: generated/rust
opt:
- compile_well_known_types
- extern_path=.google.protobuf=::pbjson_types

# Typescript
- remote: buf.build/community/stephenh-ts-proto
out: generated/ts
opt:
- esModuleInterop=true
- outputServices=generic-definitions
- useExactTypes=false
- importSuffix=.js
Binary file removed proto/bun.lockb
Binary file not shown.
Loading