-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from gh123man/wasm
Adds major version 10 featuring WASM
- Loading branch information
Showing
23 changed files
with
657 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
debug/ | ||
target/ | ||
|
||
Cargo.lock | ||
Cargo.lock | ||
example-govrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
[package] | ||
name = "vrl-bridge" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[profile.release] | ||
debug=true | ||
|
||
[lib] | ||
name = "vrl_bridge" | ||
crate-type = ["rlib", "cdylib"] | ||
|
||
[dependencies] | ||
libc = "0.2" | ||
serde_json = "1.0.87" | ||
|
||
# TODO: pin to stable version | ||
value = { git = "https://github.com/vectordotdev/vector", default-features = false } | ||
vrl = { git = "https://github.com/vectordotdev/vector", default-features = false } | ||
vrl-diagnostic = { git = "https://github.com/vectordotdev/vector", package = "vrl-diagnostic" } | ||
|
||
[dependencies.vrl-stdlib] | ||
package = "vrl-stdlib" | ||
git = "https://github.com/vectordotdev/vector" | ||
default-features = false | ||
# list of wasm-supported features taken from https://github.com/vectordotdev/vector/blob/master/lib/vrl/web-playground/Cargo.toml | ||
features = [ | ||
"append", | ||
"array", | ||
"assert", | ||
"assert_eq", | ||
"ceil", | ||
"chunks", | ||
"compact", | ||
"contains", | ||
"decode_base64", | ||
"decode_percent", | ||
"del", | ||
"downcase", | ||
"encode_base64", | ||
"encode_json", | ||
"encode_key_value", | ||
"encode_logfmt", | ||
"encode_percent", | ||
"ends_with", | ||
"exists", | ||
"filter", | ||
"find", | ||
"flatten", | ||
"float", | ||
"floor", | ||
"for_each", | ||
"format_int", | ||
"format_number", | ||
"format_timestamp", | ||
"get", | ||
"get_env_var", | ||
"includes", | ||
"ip_aton", | ||
"ip_cidr_contains", | ||
"ip_ntoa", | ||
"ip_ntop", | ||
"ip_pton", | ||
"ip_subnet", | ||
"ip_to_ipv6", | ||
"ipv6_to_ipv4", | ||
"is_array", | ||
"is_boolean", | ||
"is_empty", | ||
"is_float", | ||
"is_integer", | ||
"is_ipv4", | ||
"is_ipv6", | ||
"is_json", | ||
"is_null", | ||
"is_nullish", | ||
"is_object", | ||
"is_regex", | ||
"is_string", | ||
"is_timestamp", | ||
"join", | ||
"keys", | ||
"length", | ||
"map_keys", | ||
"map_values", | ||
"match", | ||
"match_any", | ||
"match_array", | ||
"match_datadog_query", | ||
"md5", | ||
"merge", | ||
"mod", | ||
"now", | ||
"object", | ||
"parse_apache_log", | ||
"parse_aws_alb_log", | ||
"parse_aws_cloudwatch_log_subscription_message", | ||
"parse_aws_vpc_flow_log", | ||
"parse_common_log", | ||
"parse_csv", | ||
"parse_duration", | ||
"parse_glog", | ||
"parse_int", | ||
"parse_json", | ||
"parse_key_value", | ||
"parse_klog", | ||
"parse_linux_authorization", | ||
"parse_logfmt", | ||
"parse_nginx_log", | ||
"parse_query_string", | ||
"parse_regex", | ||
"parse_regex_all", | ||
"parse_ruby_hash", | ||
"parse_syslog", | ||
"parse_timestamp", | ||
"parse_tokens", | ||
"parse_url", | ||
"parse_user_agent", | ||
"parse_xml", | ||
"push", | ||
"redact", | ||
"remove", | ||
"replace", | ||
"round", | ||
"set", | ||
"sha1", | ||
"sha2", | ||
"sha3", | ||
"slice", | ||
"split", | ||
"starts_with", | ||
"string", | ||
"strip_ansi_escape_codes", | ||
"strip_whitespace", | ||
"strlen", | ||
"tally", | ||
"tally_value", | ||
"tag_types_externally", | ||
"timestamp", | ||
"to_bool", | ||
"to_float", | ||
"to_int", | ||
"to_regex", | ||
"to_string", | ||
"to_syslog_facility", | ||
"to_syslog_level", | ||
"to_syslog_severity", | ||
"to_timestamp", | ||
"to_unix_timestamp", | ||
"truncate", | ||
"type_def", | ||
"unique", | ||
"unnest", | ||
"upcase", | ||
"values", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module example-govrl | ||
|
||
go 1.18 | ||
|
||
replace github.com/gh123man/go-vrl/v10 => ../ | ||
|
||
require github.com/gh123man/go-vrl/v10 v10.0.0 | ||
|
||
require github.com/tetratelabs/wazero v1.0.0-pre.4 // indirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github.com/tetratelabs/wazero v1.0.0-pre.4 h1:RBJQT5OzmORkSp6MmZDWoFEr0zXjk4pmvMKAdeUnsaI= | ||
github.com/tetratelabs/wazero v1.0.0-pre.4/go.mod h1:u8wrFmpdrykiFK0DFPiFm5a4+0RzsdmXYVtijBKqUVo= |
Oops, something went wrong.