Comments (6)
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.
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.
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.
I have marked the issue as invalid. @KSXGitHub should provide evidence that the issue appears on systems where libc++ is properly configured.
from rust.
@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.
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)
- Add benchmark workflow
- Is it possible to compile a rust project which uses ada-url to WASM? HOT 8
- Removing a single FFI call improves performance by 12% HOT 1
- Add serde serialize & deserialize support
- Can't compile project with ada-url HOT 8
- Why do `set_` functions return `bool`? Documentation is needed
- Test script fails on macOS
- No API to retrieve the schema type
- Add benchmarks for `ada_url::idna`
- fails to build on debian sid HOT 3
- Profile-Guided Optimization (PGO) benchmark result HOT 1
- Does Url::origin leak? HOT 5
- ada_free_owned_string parameter should be passed by value
- adding cargo-semver-checks HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.