• Stars
    star
    11
  • Rank 1,694,829 (Top 34 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 2 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ”Ž A package that wraps ripgrep and provides a Swift interface. For macOS and iOS

SwiftyRipgrep

SwiftyRipgrep Platform iOS Badge macOS Badge

This repository contains a Swift package that wraps ripgrep to be used programmatically in iOS (device and simulator) and macOS.

Usage

SwiftyRipgrep is distributed as a Swift Package. All you need to do is to add the dependency to your project through Xcode or in the Package.swift of your package:

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/chimerarun/SwiftyRipgrep.git", from: "13.0.0")
    ],
    ...
)

Version: The version of SwiftyRipgrep aligns with the version of Ripgrep wrapped so version 13.0.0 indicates that the Swift package is using the same version of Ripgrep.

Development

System dependencies

We recommend the usage of asdf to install the dependencies necessary to contribute to this project:

Generate the Swift Package

The project uses swift-bridge, a Rust tool that leverages macros and other build-time tools to generate the Swift Package from the Rust code. If you change the Rust code or update Cargo dependencies you'll have to run bin/generate.rb. The script will update the Package.swift and the content under Sources and generate a RustXcframework.xcframework directory at the root.

Testing the generated Swift package

The repository contains a Swift package under fixture that contains a tests target to test the public interface of the SwiftyRipgrep package generated at the root. You can run the tests by running swift test --package-path ./fixture

References

More Repositories

1

tuist

Tuist's CLI
Swift
4,573
star
2

XcodeProj

๐Ÿ“ Read, update and write your Xcode projects
Swift
2,028
star
3

microfeatures-guidelines

๐Ÿ“ฆ๐Ÿ“ uFeatures guidelines
311
star
4

microfeatures-example

๐Ÿ“ฆ๐Ÿ“ฑ Example of iOS app built using the uFeatures architecture
Swift
193
star
5

awesome-tuist

A community-driven collection of Tuist related posts, plugins, talks, and much more.
190
star
6

SwiftyTailwind

๐Ÿ’‡ A Swift Package to pull and run Tailwind from a Swift process
Swift
60
star
7

Command

๐Ÿ“ฆ A micro Swift package with utilities for running system processes
Swift
38
star
8

tuist-plugin-lint

A plugin that extends Tuist with SwiftLint functionalities.
Swift
37
star
9

XcodeGraph

แจ A Swift Package with data structures to model Xcode workspaces and projects
Swift
32
star
10

tuist-action

A GitHub action to run Tuist from GitHub workflows
JavaScript
25
star
11

SwiftTerminal

๐Ÿš€ A set of UI components for building terminal applications in Swift
Swift
16
star
12

Path

๐Ÿ’ป Types to model file-system paths.
Swift
14
star
13

AppleArtifactAnalyzer

๐Ÿ“ฆ A Swift Package to analyze artefacts generated by Apple
Swift
14
star
14

FileSystem

๐Ÿ“ A platform-agnostic Swift Package to interact with the file system
Swift
14
star
15

xcodehero

๐Ÿฆธโ€โ™€๏ธ A better version of "xcodebuild" built for the talk at Swift Heroes 2024
Swift
14
star
16

macker

Virtualized macOS environments using Apple's virtualization framework
Swift
9
star
17

ProjectAutomation

Swift
8
star
18

virtualOS

A CLI to virtualize macOS environments
Swift
8
star
19

lightning_css

๐ŸŽจ A wrapper to integrate LighningCSS into Elixir projects
Elixir
8
star
20

swiftable-tuist-workshop

This repository contains the content for the Shiftable 2023 workshop about Tuist
Shell
7
star
21

homebrew-tuist

Official Homebrew Tuist formula.
Ruby
6
star
22

tuist-up

A CLI too powered by Swift to provision environments using an up.toml manifest file
Swift
6
star
23

ProjectDescription

Swift
6
star
24

swift-on-server-examples

๐ŸŒ Examples using Tuist with Swift on Server applications
Swift
6
star
25

swift-log-testing

๐Ÿ“ A set of utilities for testing code that depends on Apple's swift-log package
Swift
6
star
26

bitrise-step-tuist

โšก๏ธ A step to run Tusit from Bitrise pipelines
Shell
5
star
27

XcodeProjCExt

๐Ÿ‘ฉโ€๐Ÿ’ปC extensions for XcodeProj
C
5
star
28

newsletter

โœ‰๏ธ The Listmonk deployment setup and a directory of ideas for future newsletters
HTML
5
star
29

Glob

A Swift Package for fast file-system globbing
Swift
5
star
30

XcodeProjectGenerator

๐ŸŒˆ A Swift Package to generate Xcode projects
Swift
5
star
31

tuist-vapor-example

An example Vapor project using Tuist
Swift
4
star
32

ExampleTuistPlugin

This is an example Tuist plugin for testing purposes.
Swift
3
star
33

website

Tuist static website
Astro
3
star
34

example

๐Ÿ“ฑThis repository contains an example iOS modular app described with Tuist
Swift
3
star
35

scalar_plug

๐Ÿ“ Integrate Scalar-generated documentation into your Plug-based Elixir app
Elixir
3
star
36

cross-arch-compilation-with-macros

A Swift Package project to reproduce an issue compiling Swift Packages with Macros
Swift
3
star
37

app

๐ŸŽ A cross-platform Apple-native dashboard for your Tuist projects
3
star
38

handbook

๐Ÿ“š Tuist's company handbook
JavaScript
3
star
39

reproduce-nio-bad-access-exc

A repository to reproduce a BAD_ACESS exception using NIO and Tuist
Swift
2
star
40

swift-macros-security

๐Ÿ“ฆ This repository contains an experiment to assess how secure Swift Macros are
Swift
2
star
41

issue-swift-macros-editor

Shell
2
star
42

ExampleTuistTemplate

This is an example Tuist template for testing purposes.
Swift
2
star
43

swift-sdk-for-dagger

๐Ÿš˜ Swift SDK for Dagger
Swift
2
star
44

SwiftyGlob

๐Ÿ’จ A fast globbing library for Swift
2
star
45

decks

Swift
2
star
46

.github

A repository that contains the organization's README
2
star
47

asdf-virtualos

โฌ‡๏ธ An asdf plugin to install virtualOS
Shell
2
star
48

old-docs

๐Ÿ“„ Tuist's documentation website
JavaScript
2
star
49

asdf-xcodehero

Shell
2
star
50

SwiftyESBuild

๐Ÿš‡ A Swift Package to run ESBuild
2
star
51

tuist-orb

๐Ÿš€ Easily install and run Tuist in your CircleCI jobs
Shell
1
star
52

fuckingswiftconcurrency

A learning resource to familiarise with Swift's concurrency
1
star
53

asdf-sourcedocs

An asdf plugin to install sourcedocs
Shell
1
star
54

ai

A configuration to deploy Ollama to our infrastructure
1
star
55

catalysis

๐Ÿš€ A local-first CLI to deploy static sites to multiple platforms
Rust
1
star
56

gestalt

๐Ÿ“ An open-source Apple-native knowledge-management tool
Swift
1
star
57

cloud

โ˜๏ธ Open source Tuist Cloud implementation (deprecated)
TypeScript
1
star
58

package-with-circular-target-deps

Swift
1
star
59

dependencies

๐Ÿ“ฆ A tiny package for dependency-injection in Swift
Swift
1
star