Skip to content
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

Fix regex usage by enabling the unicode-perl feature. #124

Merged
merged 2 commits into from
Nov 17, 2020

Conversation

spacejam
Copy link
Contributor

@spacejam spacejam commented Nov 17, 2020

fixes issue when using the regex crate to process creds:

 Running `target/release/ngs-usage-server-rs`
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Syntax(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex parse error:
    \s*(?:(?:[-]{3,}.*[-]{3,}\r?\n)([\w\-.=]+)(?:\r?\n[-]{3,}.*[-]{3,}\r?\n))
    ^^
error: Unicode-aware Perl class not found (make sure the unicode-perl feature is enabled)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
)', /home/t/.cargo/registry/src/github.com-1ecc6299db9ec823/nats-0.8.3/src/auth_utils.rs:67:10
stack backtrace:
   0: rust_begin_unwind
             at /rustc/1773f60ea5d42e86b8fdf78d2fc5221ead222bc1/library/std/src/panicking.rs:495:5
   1: core::panicking::panic_fmt
             at /rustc/1773f60ea5d42e86b8fdf78d2fc5221ead222bc1/library/core/src/panicking.rs:92:14
   2: core::option::expect_none_failed
             at /rustc/1773f60ea5d42e86b8fdf78d2fc5221ead222bc1/library/core/src/option.rs:1268:5
   3: core::ops::function::FnOnce::call_once
   4: once_cell::imp::OnceCell<T>::initialize::{{closure}}
   5: once_cell::imp::initialize_inner
   6: once_cell::imp::OnceCell<T>::initialize
   7: nats::auth_utils::load_creds
   8: nats::options::Options::with_credentials::{{closure}}
   9: nats::asynk::connector::Connector::connect_addr::{{closure}

@spacejam spacejam requested a review from a user November 17, 2020 15:31
@spacejam spacejam merged commit 5ff1173 into master Nov 17, 2020
@spacejam spacejam deleted the tyler_add_unicode_perl_support branch November 17, 2020 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant