//go:build fipsEnabled

//go:debug fips140=on

package main

import (
	"context"
	"crypto/fips140"
	"log"

	"github.com/cloudquery/cloudquery/plugins/source/test/v4/resources/plugin"
	"github.com/cloudquery/plugin-sdk/v4/serve"
)

func main() {
	log.Printf("FIPS enabled: %t", fips140.Enabled())
	p := serve.Plugin(plugin.Plugin())
	if err := p.Serve(context.Background()); err != nil {
		log.Fatalf("failed to serve plugin: %v", err)
	}
}
