Giter Site home page Giter Site logo

Comments (6)

anonrig avatar anonrig commented on August 15, 2024

It works on my local machine. macos 13.4. @lemire any idea?

➜  ada-rust git:(no-std) cargo test --features=libcpp
   Compiling ada-url v1.4.3 (/Users/yagiz/Developer/ada-rust)
    Finished test [unoptimized + debuginfo] target(s) in 1.44s
     Running unittests src/lib.rs (target/debug/deps/ada_url-43f0619448966089)

running 10 tests
test idna::tests::unicode_should_work ... ok
test test::should_order_alphabetically ... ok
test test::can_parse_simple_url ... ok
test test::should_clone ... ok
test test::should_compare_urls ... ok
test test::try_from_err ... ok
test idna::tests::ascii_should_work ... ok
test test::should_parse_simple_url ... ok
test test::should_display_serialization ... ok
test test::try_from_ok ... ok

test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests ada-url

running 24 tests
test src/idna.rs - idna::Idna::unicode (line 14) ... ok
test src/idna.rs - idna::Idna::ascii (line 31) ... ok
test src/lib.rs - Url::hostname (line 452) ... ok
test src/lib.rs - Url::can_parse (line 202) ... ok
test src/lib.rs - Url::pathname (line 486) ... ok
test src/lib.rs - Url::password (line 304) ... ok
test src/lib.rs - Url::host (line 414) ... ok
test src/lib.rs - Url::origin (line 231) ... ok
test src/lib.rs - Url::parse (line 169) ... ok
test src/lib.rs - Url::hash (line 383) ... ok
test src/lib.rs - Url::set_hash (line 396) ... ok
test src/lib.rs - Url::set_hostname (line 464) ... ok
test src/lib.rs - Url::set_port (line 353) ... ok
test src/lib.rs - Url::port (line 338) ... ok
test src/lib.rs - Url::search (line 520) ... ok
test src/lib.rs - Url::set_href (line 254) ... ok
test src/lib.rs - Url::set_password (line 316) ... ok
test src/lib.rs - Url::set_host (line 426) ... ok
test src/lib.rs - Url::protocol (line 555) ... ok
test src/lib.rs - Url::set_pathname (line 498) ... ok
test src/lib.rs - Url::set_username (line 282) ... ok
test src/lib.rs - Url::username (line 270) ... ok
test src/lib.rs - Url::set_protocol (line 567) ... ok
test src/lib.rs - Url::set_search (line 535) ... ok

test result: ok. 24 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.52s

from rust.

KSXGitHub avatar KSXGitHub commented on August 15, 2024

I think it's probably because I don't have the necessary packages or libraries.

If you can setup a minimal docker or podman container that successfully compiles this, we will know what is missing.

from rust.

lemire avatar lemire commented on August 15, 2024

@anonrig @KSXGitHub

I strongly suspect that this is an invalid issue.

@KSXGitHub should check that they can compile C++ code (outside this project) with libc++ on their system. It is uncommon to build C++ with libc++ under Linux. The libc++ runtime is mostly used under macOS and FreeBSD (and other BSDs) but not so much under Linux.

My suspicion is that their Linux environnement does not support compiling against libc++ either because libc++ is not installed, or because it is not properly configured.

from rust.

lemire avatar lemire commented on August 15, 2024

I have marked the issue as invalid. @KSXGitHub should provide evidence that the issue appears on systems where libc++ is properly configured.

from rust.

KSXGitHub avatar KSXGitHub commented on August 15, 2024

@lemire It does compile correctly once I install libc++. But this doesn't mean ada-url will have nothing to do: The error message is vague, the documentation is lacking. If you did not mention libc++, I wouldn't know what it is.

from rust.

anonrig avatar anonrig commented on August 15, 2024

You're right about the documentation. We need to add this to readme as same as you did with std

from rust.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.