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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CLAUDE.md
# Prebuilt libraries (committed to go branch only)
/build-naive
/lib/
/include/
/include/*
!/include/dummy.go
/cgo_*.go
/lib_*_cgo.go
12 changes: 12 additions & 0 deletions dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//go:build dummy

// This file exists purely to prevent the Go toolchain from stripping
// away the C source directories and files when `go mod vendor` is used
// to populate a `vendor/` directory of a project depending on this package.

package cronet

import (
// Prevent go tooling from stripping out the c source files.
_ "github.com/sagernet/cronet-go/include"
)
2 changes: 2 additions & 0 deletions include/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package include is a dummy package that prevents go tooling from stripping the C dependencies.
package include
Loading