#Germinal: A terminal manipulation library based on crossterm in Rust

1 messages · Page 1 of 1 (latest)

pale bane
buoyant bison
#

@normal sparrow 👀

pale bane
#

Forgot to mention that this currently only works in Erlang... I will try to add Javascript implementation later

buoyant bison
#

so does this mean you need a rust compiler to use the package?

pale bane
#

I guess not. The .so file is uploaded to Hex and so I guess rust compiler is not required
I am not familar with Hex so I'm not sure
Oh, there might be another problem I need to solve
the .so file cannot be used in all computer... I completely forgot this one

quick hedge
#

yeah, you'll need rebar to build the shared library on install

#

i'm not sure whether rebar is actually supported for building gleam, or if it's only for dependencies...

buoyant bison
#

gleam has its own build tool, you need rebar for erlang deps (and mix for elixir)

#

but the gleam build tool wont know anything about compiling native code

pale bane
quick hedge
#

maybe with a rebar.config like this:

{pre_hooks,
    [
        {"(linux|solaris|freebsd|openbsd)", compile, "bash -c 'mkdir -p priv; cd germinal_rs; cargo build --release; cp target/release/libgerminal_rs.so ../priv/'"},
        {compile, "gleam build"}
    ]
}.
#

i'm not sure it needs a whole plugin for that...

#

but obviously this'd need cargo, rustc, a C compiler, and bash installed...

#

an alternative may be to precompile all of them, and decide at runtime which one to load

pale bane
#

Thank you for the config
I will look at it

inland olive
#

Yeah generally you’d depend on a rebar3 project that has the compile hooks

quick hedge
#

so the build_tools option isn't for gleam projects?

#

hmm, seems to be for manifest only, not gleam.toml

inland olive
#

It’s the build tools that the packages you depend on use

#

We support gleam, mix, rebar, and rebar3

quick hedge
#

yeah, but how can i gleam publish something with rebar as build too? 🙂

#

or would publishing via rebar be the way to go?

inland olive
#

Yup if you publish a project with gleam it’ll tell hex that the build tool is gleam

normal sparrow
#

@worthy tulip

worthy tulip
normal sparrow
#

@worthy tulip Can you throw together a "print every character as it's received" demo with this? I want to see if it suffers from the same problem we had.

#

I'll work on it too, but I start work in a bit.

worthy tulip
#

i probably won't be able to do it until after work

normal sparrow
#

Okay, I just called germinal.read a bunch of times in series, it has the same problem as Glerm.

worthy tulip
#

that is reassuring if not also extremely disappointing lol

normal sparrow
#

3 events from typing hello