Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgo support? #780

Closed
Julio-Guerra opened this issue Jul 15, 2020 · 1 comment
Closed

cgo support? #780

Julio-Guerra opened this issue Jul 15, 2020 · 1 comment
Labels
question Further information is requested

Comments

@Julio-Guerra
Copy link

Julio-Guerra commented Jul 15, 2020

Proposal

I guess CGO isn't supported as it is based on compile-time code generation and low-level Go ABI things, but as I couldn't clearly find the answer, I thought it would be worth asking.

Background

Given Traefik plugins are now based on Yaegi, advanced middleware plugins such as web-app firewalls may be Go wrappers of C libraries.

Some of our users would like to have us in their Traefik proxy but, afaik, being limited to pure Go makes it impossible for now.

@mvertes
Copy link
Member

mvertes commented Jul 20, 2020

As stated in the README, using CGO at interpreter level is not supported. It is always possible to wrap a pre-compiled package and export it to the interpreter by Use method (as it is done for the standard library), but that implies adding a new dependency to the host binary (in the plugin case, traefik).

@mvertes mvertes added the question Further information is requested label Jul 20, 2020
@traefik traefik locked and limited conversation to collaborators Sep 30, 2021
@ldez ldez closed this as completed Sep 30, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants