diff --git a/crypto.go b/crypto.go
index bf1ed4d..402e8f4 100644
--- a/crypto.go
+++ b/crypto.go
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
+//go:build cgo && !nocrypto
// +build cgo,!nocrypto
package main
diff --git a/database/cryptostore.go b/database/cryptostore.go
index 618d150..872a9d6 100644
--- a/database/cryptostore.go
+++ b/database/cryptostore.go
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
+//go:build cgo && !nocrypto
// +build cgo,!nocrypto
package database
diff --git a/no-crypto.go b/no-crypto.go
index 75a2c68..14e49c0 100644
--- a/no-crypto.go
+++ b/no-crypto.go
@@ -1,3 +1,4 @@
+//go:build !cgo || nocrypto
// +build !cgo nocrypto
package main