rust.mk icon indicating copy to clipboard operation
rust.mk copied to clipboard

very slow startup

Open goertzenator opened this issue 8 years ago • 5 comments

rust.mk installs the cargo-erlangapp crate. Due to JSON deps this is very slow, so consider replacing that crate with an Erlang app.

@essen, off the top of your head are you aware of an erlang.mk plugin that has nested dependencies that I could use as a reference? It is not clear to me how plugin.mk rules should invoke functions in the plugin app while keeping dependent apps accessible.

goertzenator avatar Feb 23 '17 15:02 goertzenator

Your plugin should be able to DEPS += whatyouneed, if that's what you mean?

essen avatar Feb 23 '17 15:02 essen

That's right. I'm looking for an example of a plugin that does exactly that and uses those deps at build time.

goertzenator avatar Feb 23 '17 18:02 goertzenator

I don't think I currently know of one, but I wanted to write one for a project.

essen avatar Feb 23 '17 18:02 essen

Okay, no worries then. I'll try to figure things out.

goertzenator avatar Feb 23 '17 18:02 goertzenator

FYI RabbitMQ has a lot of plugins doing this sort of thing. For example: https://github.com/rabbitmq/rabbitmq-common/blob/master/mk/rabbitmq-early-test.mk#L92

essen avatar Jul 18 '17 20:07 essen