qwe-qy

Crates.ioqwe-qy
lib.rsqwe-qy
version1766548.633.379
created_at2025-12-24 03:57:17.038272+00
updated_at2025-12-24 03:57:17.038272+00
descriptionA lightweight utility library for managing and generating dynamic links with tracking parameters.
homepagehttps://example.com
repositoryhttps://github.com/qy-upup/qwe-qy
max_upload_size
id2002715
size5,811
(qy-upup)

documentation

README

qwe-qy

A lightweight utility library for managing and generating dynamic links with tracking parameters.

Features

  • Simple and intuitive API
  • Support for custom UTM parameters
  • HTML anchor generation with customizable attributes
  • Zero external dependencies (except for URL encoding)
  • Fully documented with examples

Installation

Add this to your Cargo.toml:

[dependencies]
qwe-qy = "0.1"

Quick Start

use qwe_qy::LinkBuilder;

fn main() {
    let builder = LinkBuilder::new("https://example.com");

    // Create a tracked link
    let link = builder.build_link(
        Some("newsletter"),
        Some("email"),
        Some("spring-2025")
    );

    // Generate HTML markup
    let html = builder.generate_anchor(
        "Learn more",
        Some("blog"),
        Some("article"),
        None,
        None,
        Some("cta-button")
    );

    println!("{}", link);
    println!("{}", html);
}

Use Cases

This library is perfect for:

  • Marketing campaigns with UTM tracking
  • Dynamic link generation in templates
  • Building referral systems
  • Analytics and conversion tracking

Resources

For more information and examples, visit https://example.com.

License

MIT

Commit count: 0

cargo fmt