If you have no cards in your library, then damage done to you will have no effect since it will get changed into a removal that can’t happen.

Artwork
Loading artwork…
Crumbling Sanctuary
World Championship Decks 2000 · #jf292 · EN
Nonfoil—Foil—
Card rules
If damage would be dealt to a player, that player exiles that many cards from the top of their library instead.
Rare · Illustrated by Randy Gallegos
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
PreDH Legal
Premodern Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The ability affects all players.