"""
rfind - Restricted file finder
"""

__version__ = "0.2.0"

# Try to use C extension first for better performance
try:
    from ._rfind import scan_directory, smart_scan, parallel_scan
    USING_CEXT = True
except ImportError:
    USING_CEXT = False
    # Fall back to Python implementation
    try:
        from .scanner import scan_directory, smart_scan, parallel_scan
    except ImportError as e:
        # Create minimal implementations if both fail
        def scan_directory(*args, **kwargs):
            raise RuntimeError("rfind: No scanner implementation available")
        def smart_scan(*args, **kwargs):
            raise RuntimeError("rfind: No scanner implementation available")
        def parallel_scan(*args, **kwargs):
            raise RuntimeError("rfind: No scanner implementation available")

__all__ = [
    'scan_directory',
    'smart_scan',
    'parallel_scan',
    '__version__'
]
