ISibboI / evalexpr

A powerful expression evaluation crate 🦀.
GNU Affero General Public License v3.0
320 stars 52 forks source link

disabling built-in functions #112

Open NatanFreeman opened 2 years ago

NatanFreeman commented 2 years ago

Is there a way to disable the built-in functions other than simply replacing the function names in input Strings?

ISibboI commented 2 years ago

At the moment there is not. I was thinking of doing some sort of a composable context before, but never got around to it.

On Tue, 13 Sep 2022, 10.01 NatanFreeman, @.***> wrote:

Is there a way to disable the built-in functions https://docs.rs/evalexpr/8.1.0/evalexpr/index.html#builtin-functions other than simply replacing the function names in input Strings?

— Reply to this email directly, view it on GitHub https://github.com/ISibboI/evalexpr/issues/112, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASATXSWM73FI7O3HCW5RBDV6ARF5ANCNFSM6AAAAAAQLEAREM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

NatanFreeman commented 2 years ago

It would be really helpful if there was. I'm keeping this issue open as what I want is not yet possible.

hexofyore commented 1 year ago

I made pull request which allows user to disable builtin function using context.