Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mild-times/twitter-card
Generate HTML for Twitter Card integration.
https://github.com/mild-times/twitter-card
Last synced: about 1 month ago
JSON representation
Generate HTML for Twitter Card integration.
- Host: GitHub
- URL: https://github.com/mild-times/twitter-card
- Owner: mild-times
- License: apache-2.0
- Created: 2018-11-17T19:41:46.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2020-08-09T13:18:33.000Z (over 4 years ago)
- Last Synced: 2024-08-03T01:29:43.927Z (5 months ago)
- Language: Rust
- Homepage: https://docs.rs/twitter-card
- Size: 25.4 KB
- Stars: 21
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE-APACHE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-list - twitter-card - times | 21 | (Rust)
README
# twitter-card
[![crates.io version][1]][2] [![build status][3]][4]
[![downloads][5]][6] [![docs.rs docs][7]][8]Generate HTML for Twitter Card integration.
- [Documentation][8]
- [Crates.io][2]
- [Releases][releases]## Examples
__Basic usage__
```rust
use twitter_card::{Summary, TwitterCard};let card = Summary::builder()
.site("@flickr")
.title("Small Island Developing States Photo Submission")
.desc("View the album on Flickr.")
.image("https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg")
.build();
``````html
<--! Output -->```
## Installation
```sh
$ cargo add twitter-card
```## Safety
This crate uses ``#![deny(unsafe_code)]`` to ensure everything is implemented in
100% Safe Rust.## Contributing
Want to join us? Check out our ["Contributing" guide][contributing] and take a
look at some of these issues:- [Issues labeled "good first issue"][good-first-issue]
- [Issues labeled "help wanted"][help-wanted]## References
- [Twitter Card Validator](https://cards-dev.twitter.com/validator)
- [Twitter Card Overview](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/markup)## License
[MIT](./LICENSE-MIT) OR [Apache-2.0](./LICENSE-APACHE)[1]: https://img.shields.io/crates/v/twitter-card.svg?style=flat-square
[2]: https://crates.io/crates/twitter-card
[3]: https://img.shields.io/travis/http-rs/twitter-card/main.svg?style=flat-square
[4]: https://travis-ci.org/http-rs/twitter-card
[5]: https://img.shields.io/crates/d/twitter-card.svg?style=flat-square
[6]: https://crates.io/crates/twitter-card
[7]: https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square
[8]: https://docs.rs/twitter-card[releases]: https://github.com/http-rs/twitter-card/releases
[contributing]: https://github.com/http-rs/twitter-card/blob/main.github/CONTRIBUTING.md
[good-first-issue]: https://github.com/http-rs/twitter-card/labels/good%20first%20issue
[help-wanted]: https://github.com/http-rs/twitter-card/labels/help%20wanted